Package com.tangosol.io.pof
Class EvolvableHolder
- java.lang.Object
-
- com.tangosol.io.pof.EvolvableHolder
-
- All Implemented Interfaces:
ExternalizableLite,Serializable
public class EvolvableHolder extends Object implements ExternalizableLite
Storage for evolvable classes.- Since:
- 12.2.1
- Author:
- as 2013.07.25
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Integer,Evolvable>m_mapEvolvableMap of Evolvable objects, keyed by type id.
-
Constructor Summary
Constructors Constructor Description EvolvableHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Evolvableget(Integer idType)Return anEvolvablefor the specified type id.Set<Integer>getTypeIds()Return type identifiers for all the Evolvables within this holder.booleanisEmpty()Returntrueif this holder is empty.voidreadExternal(DataInput in)Restore the contents of this object by loading the object's state from the passed DataInput object.voidwriteExternal(DataOutput out)Save the contents of this object by storing the object's state into the passed DataOutput object.
-
-
-
Method Detail
-
get
public Evolvable get(Integer idType)
Return anEvolvablefor the specified type id.- Parameters:
idType- type identifier- Returns:
- an Evolvable instance
-
getTypeIds
public Set<Integer> getTypeIds()
Return type identifiers for all the Evolvables within this holder.- Returns:
- type identifiers for all the Evolvables within this holder
-
isEmpty
public boolean isEmpty()
Returntrueif this holder is empty.- Returns:
trueif this holder is empty,falseotherwise
-
readExternal
public void readExternal(DataInput in) throws IOException
Description copied from interface:ExternalizableLiteRestore the contents of this object by loading the object's state from the passed DataInput object.- Specified by:
readExternalin interfaceExternalizableLite- Parameters:
in- the DataInput stream to read data from in order to restore the state of this object- Throws:
IOException- if an I/O exception occursNotActiveException- if the object is not in its initial state, and therefore cannot be deserialized into
-
writeExternal
public void writeExternal(DataOutput out) throws IOException
Description copied from interface:ExternalizableLiteSave the contents of this object by storing the object's state into the passed DataOutput object.- Specified by:
writeExternalin interfaceExternalizableLite- Parameters:
out- the DataOutput stream to write the state of this object to- Throws:
IOException- if an I/O exception occurs
-
-