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>

public class SerializedMetaData<T> extends Object implements SerializedObject<T>
Represents the serialized form of a MetaData instance.
Since:
2.0
Author:
Allard Buijze
  • Constructor Details

    • SerializedMetaData

      public SerializedMetaData(T data, Class<T> dataType)
      Construct an instance with given bytes representing the serialized form of a MetaData instance.
      Parameters:
      data - data representing the serialized form of a MetaData instance.
      dataType - The type of data
  • Method Details

    • isSerializedMetaData

      public static boolean isSerializedMetaData(SerializedObject<?> serializedObject)
      Indicates whether the given serializedObject represents a serialized form of a MetaData object, such as the ones created by this class (see SerializedMetaData(Object, Class).
      Parameters:
      serializedObject - The object to check for Meta Data
      Returns:
      true if the serialized objects represents serialized meta data, otherwise false.
    • getData

      public T getData()
      Description copied from interface: SerializedObject
      The actual data of the serialized object.
      Specified by:
      getData in interface SerializedObject<T>
      Returns:
      the actual data of the serialized object
    • getContentType

      public Class<T> getContentType()
      Description copied from interface: SerializedObject
      Returns the type of this representation's data.
      Specified by:
      getContentType in interface SerializedObject<T>
      Returns:
      the type of this representation's data
    • getType

      public SerializedType getType()
      Description copied from interface: SerializedObject
      Returns the description of the type of object contained in the data.
      Specified by:
      getType in interface SerializedObject<T>
      Returns:
      the description of the type of object contained in the data
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object