Package org.axonframework.serialization
Class SimpleSerializedType
java.lang.Object
org.axonframework.serialization.SimpleSerializedType
- All Implemented Interfaces:
SerializedType
SerializedType implementation that takes its properties as constructor parameters.
- Since:
- 2.0
- Author:
- Allard Buijze
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleSerializedType(String objectType, String revisionNumber) Initialize with givenobjectTypeandrevisionNumber -
Method Summary
Modifier and TypeMethodDescriptionstatic SerializedTypeReturns the type that represents an empty message, of undefined type.booleangetName()Returns the name of the serialized type.Returns the revision identifier of the serialized object.inthashCode()toString()
-
Constructor Details
-
SimpleSerializedType
Initialize with givenobjectTypeandrevisionNumber- Parameters:
objectType- The description of the serialized object's typerevisionNumber- The revision of the serialized object's type
-
-
Method Details
-
emptyType
Returns the type that represents an empty message, of undefined type. The type of such message is "empty" and always has anullrevision.- Returns:
- the type representing an empty message
-
getName
Description copied from interface:SerializedTypeReturns the name of the serialized type. This may be the class name of the serialized object, or an alias for that name.- Specified by:
getNamein interfaceSerializedType- Returns:
- the name of the serialized type
-
getRevision
Description copied from interface:SerializedTypeReturns the revision identifier of the serialized object. This revision identifier is used by upcasters to decide how to transform serialized objects during deserialization.- Specified by:
getRevisionin interfaceSerializedType- Returns:
- the revision identifier of the serialized object
-
equals
-
hashCode
public int hashCode() -
toString
-