Class SimpleSerializedType
- java.lang.Object
-
- io.axoniq.dataprotection.serialization.SimpleSerializedType
-
- All Implemented Interfaces:
SerializedType
public class SimpleSerializedType extends Object implements SerializedType
SerializedType implementation that takes its properties as constructor parameters.- Since:
- 2.0
- Author:
- Allard Buijze
-
-
Constructor Summary
Constructors Constructor Description SimpleSerializedType(String objectType, String revisionNumber)Initialize with givenobjectTypeandrevisionNumber
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetName()Returns the name of the serialized type.StringgetRevision()Returns the revision identifier of the serialized object.inthashCode()StringtoString()
-
-
-
Method Detail
-
getName
public String 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
public String 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
-
-