Package org.axonframework.serialization
Class SimpleSerializedObject<T>
java.lang.Object
org.axonframework.serialization.SimpleSerializedObject<T>
- Type Parameters:
T- The data type representing the serialized object
- All Implemented Interfaces:
SerializedObject<T>
- Direct Known Subclasses:
SerializedSaga
SerializedObject implementation that takes all properties as constructor parameters.
- Since:
- 2.0
- Author:
- Allard Buijze
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a SimpleSerializedObject using givendataand a serialized type identified by giventypeandrevision.SimpleSerializedObject(T data, Class<T> dataType, SerializedType serializedType) Initializes a SimpleSerializedObject using givendataandserializedType. -
Method Summary
-
Constructor Details
-
SimpleSerializedObject
Initializes a SimpleSerializedObject using givendataandserializedType.- Parameters:
data- The data of the serialized objectdataType- The type of dataserializedType- The type description of the serialized object
-
SimpleSerializedObject
Initializes a SimpleSerializedObject using givendataand a serialized type identified by giventypeandrevision.- Parameters:
data- The data of the serialized objectdataType- The type of datatype- The type identifying the serialized objectrevision- The revision of the serialized object
-
-
Method Details
-
getData
Description copied from interface:SerializedObjectThe actual data of the serialized object.- Specified by:
getDatain interfaceSerializedObject<T>- Returns:
- the actual data of the serialized object
-
getContentType
Description copied from interface:SerializedObjectReturns the type of this representation's data.- Specified by:
getContentTypein interfaceSerializedObject<T>- Returns:
- the type of this representation's data
-
getType
Description copied from interface:SerializedObjectReturns the description of the type of object contained in the data.- Specified by:
getTypein interfaceSerializedObject<T>- Returns:
- the description of the type of object contained in the data
-
equals
-
hashCode
public int hashCode() -
toString
-