com.alibaba.druid.util
Class LazyCompositeData

java.lang.Object
  extended by com.alibaba.druid.util.LazyCompositeData
All Implemented Interfaces:
Serializable, CompositeData

public abstract class LazyCompositeData
extends Object
implements CompositeData, Serializable

This abstract class provides the implementation of the CompositeData interface. A CompositeData object will be lazily created only when the CompositeData interface is used. Classes that extends this abstract class will implement the getCompositeData() method. The object returned by the getCompositeData() is an instance of CompositeData such that the instance serializes itself as the type CompositeDataSupport.

See Also:
Serialized Form

Constructor Summary
LazyCompositeData()
           
 
Method Summary
 boolean containsKey(String key)
           
 boolean containsValue(Object value)
           
 boolean equals(Object obj)
           
 Object get(String key)
           
 Object[] getAll(String[] keys)
           
 CompositeType getCompositeType()
           
 int hashCode()
           
 String toString()
           
 Collection<?> values()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyCompositeData

public LazyCompositeData()
Method Detail

containsKey

public boolean containsKey(String key)
Specified by:
containsKey in interface CompositeData

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface CompositeData

equals

public boolean equals(Object obj)
Specified by:
equals in interface CompositeData
Overrides:
equals in class Object

get

public Object get(String key)
Specified by:
get in interface CompositeData

getAll

public Object[] getAll(String[] keys)
Specified by:
getAll in interface CompositeData

getCompositeType

public CompositeType getCompositeType()
Specified by:
getCompositeType in interface CompositeData

hashCode

public int hashCode()
Specified by:
hashCode in interface CompositeData
Overrides:
hashCode in class Object

toString

public String toString()
Specified by:
toString in interface CompositeData
Overrides:
toString in class Object

values

public Collection<?> values()
Specified by:
values in interface CompositeData


Copyright © 2012 Alibaba Group. All Rights Reserved.