T
- The data type representing the serialized objectpublic class SimpleSerializedObject<T> extends Object implements SerializedObject<T>
Constructor and Description |
---|
SimpleSerializedObject(T data,
Class<T> dataType,
SerializedType serializedType)
Initializes a SimpleSerializedObject using given
data and serializedType . |
SimpleSerializedObject(T data,
Class<T> dataType,
String type,
String revision)
Initializes a SimpleSerializedObject using given
data and a serialized type identified by given
type and revision . |
Modifier and Type | Method and Description |
---|---|
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() |
String |
toString() |
public SimpleSerializedObject(T data, Class<T> dataType, SerializedType serializedType)
data
and serializedType
.data
- The data of the serialized objectdataType
- The type of dataserializedType
- The type description of the serialized objectpublic SimpleSerializedObject(T data, Class<T> dataType, String type, String revision)
data
and a serialized type identified by given
type
and revision
.data
- The data of the serialized objectdataType
- The type of datatype
- The type identifying the serialized objectrevision
- The revision of the serialized objectpublic T getData()
SerializedObject
getData
in interface SerializedObject<T>
public Class<T> getContentType()
SerializedObject
getContentType
in interface SerializedObject<T>
public SerializedType getType()
SerializedObject
getType
in interface SerializedObject<T>
Copyright © 2010–2022. All rights reserved.