Package com.tangosol.io
Class SimpleEvolvable
java.lang.Object
com.tangosol.io.SimpleEvolvable
- All Implemented Interfaces:
 Evolvable
Simple implementation of 
Evolvable interface.- Since:
 - 12.2.1
 - Author:
 - as 2013.04.19
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BinaryFuture data.protected intData version.protected intImplementation version. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintObtain the version associated with the data stream from which this object was deserialized.Return all the unknown remainder of the data stream from which this object was deserialized.intDetermine the serialization version supported by the implementing class.voidsetDataVersion(int nDataVersion) Set the version associated with the data stream with which this object is being deserialized.voidsetFutureData(Binary binFutureData) Store the unknown remainder of the data stream from which this object is being deserialized. 
- 
Field Details
- 
m_nImplVersion
protected int m_nImplVersionImplementation version. - 
m_nDataVersion
protected int m_nDataVersionData version. - 
m_binFutureData
Future data. 
 - 
 - 
Constructor Details
- 
SimpleEvolvable
public SimpleEvolvable(int nImplVersion) Create SimpleEvolvable instance.- Parameters:
 nImplVersion- the implementation version of the class this Evolvable is for
 
 - 
 - 
Method Details
- 
getImplVersion
public int getImplVersion()Determine the serialization version supported by the implementing class.- Specified by:
 getImplVersionin interfaceEvolvable- Returns:
 - the serialization version supported by this object
 
 - 
getDataVersion
public int getDataVersion()Obtain the version associated with the data stream from which this object was deserialized. If the object was constructed (not deserialized), the data version is the same as the implementation version.- Specified by:
 getDataVersionin interfaceEvolvable- Returns:
 - the version of the data used to initialize this object, greater than or equal to zero
 
 - 
setDataVersion
public void setDataVersion(int nDataVersion) Set the version associated with the data stream with which this object is being deserialized.- Specified by:
 setDataVersionin interfaceEvolvable- Parameters:
 nDataVersion- the version of the data in the data stream that will be used to deserialize this object; greater than or equal to zero
 - 
getFutureData
Return all the unknown remainder of the data stream from which this object was deserialized. The remainder is unknown because it is data that was originally written by a future version of this object's class.- Specified by:
 getFutureDatain interfaceEvolvable- Returns:
 - future data in binary form
 
 - 
setFutureData
Store the unknown remainder of the data stream from which this object is being deserialized. The remainder is unknown because it is data that was originally written by a future version of this object's class.- Specified by:
 setFutureDatain interfaceEvolvable- Parameters:
 binFutureData- future data in binary form
 
 -