|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.serializer.SimpleSerializedObject<T>
T
- The data type representing the serialized objectpublic class SimpleSerializedObject<T>
SerializedObject implementation that takes all properties as constructor parameters.
Constructor Summary | |
---|---|
SimpleSerializedObject(T data,
Class<T> dataType,
SerializedType serializedType)
Initializes a SimpleSerializedObject using given data and serializedType . |
|
SimpleSerializedObject(T data,
Class<T> dataType,
String type,
String revision)
Initializes a SimpleSerializedObject using given data and a serialized type identified by given
type and revision . |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Class<T> |
getContentType()
Returns the type of this representation's data. |
T |
getData()
The actual data of the serialized object. |
SerializedType |
getType()
Returns the description of the type of object contained in the data. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleSerializedObject(T data, Class<T> dataType, SerializedType serializedType)
data
and serializedType
.
data
- The data of the serialized objectdataType
- The type of dataserializedType
- The type description of the serialized objectpublic SimpleSerializedObject(T data, Class<T> dataType, String type, String revision)
data
and a serialized type identified by given
type
and revision
.
data
- The data of the serialized objectdataType
- The type of datatype
- The type identifying the serialized objectrevision
- The revision of the serialized objectMethod Detail |
---|
public T getData()
SerializedObject
getData
in interface SerializedObject<T>
public Class<T> getContentType()
SerializedObject
getContentType
in interface SerializedObject<T>
public SerializedType getType()
SerializedObject
getType
in interface SerializedObject<T>
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |