public static final class DataStoreTypes.SerializedItemDescriptor
extends java.lang.Object
PersistentDataStore.
This is equivalent to DataStoreTypes.ItemDescriptor, but is used for persistent data stores. The
SDK will convert each data item to and from its serialized string form; the persistent data
store deals only with the serialized form.
| Constructor and Description |
|---|
SerializedItemDescriptor(int version,
boolean deleted,
java.lang.String serializedItem)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getSerializedItem()
Returns the data item's serialized representation.
|
int |
getVersion()
Returns the version number of this data, provided by the SDK.
|
int |
hashCode() |
boolean |
isDeleted()
Returns true if this is a placeholder (tombstone) for a deleted item.
|
java.lang.String |
toString() |
public SerializedItemDescriptor(int version,
boolean deleted,
java.lang.String serializedItem)
version - the version numberdeleted - true if this is a deleted item placeholderserializedItem - the serialized data (will not be null)public int getVersion()
public boolean isDeleted()
getSerializedItem() will still contain a string representing the deleted item, but
the persistent store implementation has the option of not storing it if it can represent the
placeholder in a more efficient way.public java.lang.String getSerializedItem()
isDeleted()).public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object