org.axonframework.serializer
Class SerializedMetaData<T>

java.lang.Object
  extended by org.axonframework.serializer.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 Summary
SerializedMetaData(T data, Class<T> dataType)
          Construct an instance with given bytes representing the serialized form of a MetaData instance.
 
Method Summary
 boolean equals(Object o)
           
 Class<T> getContentType()
          Returns the type of this representation's data.
 T getData()
          The actual data of the serialized object.
 SerializedType getType()
          Returns the description of the type of object contained in the data.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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


Copyright © 2010-2012. All Rights Reserved.