Class SimpleSerializedType

java.lang.Object
org.axonframework.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 Details

    • SimpleSerializedType

      public SimpleSerializedType(String objectType, String revisionNumber)
      Initialize with given objectType and revisionNumber
      Parameters:
      objectType - The description of the serialized object's type
      revisionNumber - The revision of the serialized object's type
  • Method Details

    • emptyType

      public static SerializedType emptyType()
      Returns the type that represents an empty message, of undefined type. The type of such message is "empty" and always has a null revision.
      Returns:
      the type representing an empty message
    • getName

      public String getName()
      Description copied from interface: SerializedType
      Returns the name of the serialized type. This may be the class name of the serialized object, or an alias for that name.
      Specified by:
      getName in interface SerializedType
      Returns:
      the name of the serialized type
    • getRevision

      public String getRevision()
      Description copied from interface: SerializedType
      Returns 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:
      getRevision in interface SerializedType
      Returns:
      the revision identifier of the serialized object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object