Package com.tangosol.io.pof
Class EvolvableHolder
java.lang.Object
com.tangosol.io.pof.EvolvableHolder
- All Implemented Interfaces:
ExternalizableLite
,Serializable
Storage for evolvable classes.
- Since:
- 12.2.1
- Author:
- as 2013.07.25
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionMap of Evolvable objects, keyed by type id. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn anEvolvable
for the specified type id.Return type identifiers for all the Evolvables within this holder.boolean
isEmpty()
Returntrue
if this holder is empty.void
Restore the contents of this object by loading the object's state from the passed DataInput object.void
writeExternal
(DataOutput out) Save the contents of this object by storing the object's state into the passed DataOutput object.
-
Field Details
-
m_mapEvolvable
Map of Evolvable objects, keyed by type id.
-
-
Constructor Details
-
EvolvableHolder
public EvolvableHolder()
-
-
Method Details
-
get
Return anEvolvable
for the specified type id.- Parameters:
idType
- type identifier- Returns:
- an Evolvable instance
-
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()Returntrue
if this holder is empty.- Returns:
true
if this holder is empty,false
otherwise
-
readExternal
Description copied from interface:ExternalizableLite
Restore the contents of this object by loading the object's state from the passed DataInput object.- Specified by:
readExternal
in 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 occurs
-
writeExternal
Description copied from interface:ExternalizableLite
Save the contents of this object by storing the object's state into the passed DataOutput object.- Specified by:
writeExternal
in interfaceExternalizableLite
- Parameters:
out
- the DataOutput stream to write the state of this object to- Throws:
IOException
- if an I/O exception occurs
-