T
- The type of the value to store.public final class PersistentDataType<T>
extends java.lang.Object
PersistentDataContainer
.Modifier and Type | Field and Description |
---|---|
static PersistentDataType<java.math.BigDecimal> |
BIG_DECIMAL |
static PersistentDataType<java.lang.Byte> |
BYTE |
static PersistentDataType<byte[]> |
BYTE_ARRAY |
static PersistentDataType<java.lang.Double> |
DOUBLE |
static PersistentDataType<java.lang.Float> |
FLOAT |
static PersistentDataType<int[]> |
INT_ARRAY |
static PersistentDataType<java.lang.Integer> |
INTEGER |
static PersistentDataType<java.lang.Long> |
LONG |
static PersistentDataType<java.lang.Short> |
SHORT |
static PersistentDataType<java.lang.String> |
STRING |
static PersistentDataType<java.util.UUID> |
UUID |
Constructor and Description |
---|
PersistentDataType(java.lang.Class<T> type,
PersistentDataTypeContext<T> context)
Custom type constructor.
|
Modifier and Type | Method and Description |
---|---|
PersistentDataTypeContext<T> |
getContext() |
java.lang.Class<T> |
getType() |
public static final PersistentDataType<java.math.BigDecimal> BIG_DECIMAL
public static final PersistentDataType<byte[]> BYTE_ARRAY
public static final PersistentDataType<java.lang.Byte> BYTE
public static final PersistentDataType<java.lang.Double> DOUBLE
public static final PersistentDataType<java.lang.Float> FLOAT
public static final PersistentDataType<int[]> INT_ARRAY
public static final PersistentDataType<java.lang.Integer> INTEGER
public static final PersistentDataType<java.lang.Long> LONG
public static final PersistentDataType<java.lang.Short> SHORT
public static final PersistentDataType<java.lang.String> STRING
public static final PersistentDataType<java.util.UUID> UUID
public PersistentDataType(java.lang.Class<T> type, PersistentDataTypeContext<T> context)
type
- The type.context
- The context class used to serialize and deserialize this data type.public java.lang.Class<T> getType()
@Nullable public PersistentDataTypeContext<T> getContext()