Package org.axonframework.serialization
Class SerializedMetaData<T>
java.lang.Object
org.axonframework.serialization.SerializedMetaData<T>
- Type Parameters:
T- The data type representing the serialized object
- All Implemented Interfaces:
SerializedObject<T>
Represents the serialized form of a
MetaData instance.- Since:
- 2.0
- Author:
- Allard Buijze
-
Constructor Summary
ConstructorsConstructorDescriptionSerializedMetaData(T data, Class<T> dataType) Construct an instance with givenbytesrepresenting the serialized form of aMetaDatainstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the type of this representation's data.getData()The actual data of the serialized object.getType()Returns the description of the type of object contained in the data.inthashCode()static booleanisSerializedMetaData(SerializedObject<?> serializedObject) Indicates whether the givenserializedObjectrepresents a serialized form of a MetaData object, such as the ones created by this class (seeSerializedMetaData(Object, Class).
-
Constructor Details
-
Method Details
-
isSerializedMetaData
Indicates whether the givenserializedObjectrepresents a serialized form of a MetaData object, such as the ones created by this class (seeSerializedMetaData(Object, Class).- Parameters:
serializedObject- The object to check for Meta Data- Returns:
trueif the serialized objects represents serialized meta data, otherwisefalse.
-
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()
-