E
- The enum typeI
- The immutable manipulator typeM
- The mutable manipulator typepublic abstract class AbstractImmutableSingleEnumData<E extends Enum<E>,I extends ImmutableDataManipulator<I,M>,M extends DataManipulator<M,I>> extends AbstractImmutableSingleData<E,I,M>
ImmutableDataManipulator
dealing
specifically with an Enum
value. Note that due to the limitations
of adding new values to an Enum
, these may be cached.defaultValue, usedKey, value
Modifier | Constructor and Description |
---|---|
protected |
AbstractImmutableSingleEnumData(E value,
E defaultValue,
Key<Value<E>> usedKey)
Deprecated.
Use
AbstractImmutableSingleEnumData(Key, Enum, Enum) instead. |
protected |
AbstractImmutableSingleEnumData(Key<Value<E>> usedKey,
E value) |
protected |
AbstractImmutableSingleEnumData(Key<Value<E>> usedKey,
E value,
E defaultValue) |
Modifier and Type | Method and Description |
---|---|
protected ImmutableValue<E> |
enumType()
Deprecated.
Use
getValueGetter() instead. |
protected DataContainer |
fillContainer(DataContainer dataContainer)
Implement this method to add the data to be persisted.
|
protected ImmutableValue<E> |
getValueGetter() |
DataContainer |
toContainer()
Serializes this object into a comprehensible
DataContainer . |
asMutable, equals, get, getKeys, getValue, hashCode, registerGetters, supports
copy, getValue, getValues, registerFieldGetter, registerKeyValue
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
with, with
getContentVersion
getOrElse, getOrNull, require, supports
@Deprecated protected AbstractImmutableSingleEnumData(E value, E defaultValue, Key<Value<E>> usedKey)
AbstractImmutableSingleEnumData(Key, Enum, Enum)
instead.protected AbstractImmutableSingleEnumData(Key<Value<E>> usedKey, E value)
@Deprecated protected final ImmutableValue<E> enumType()
getValueGetter()
instead.protected final ImmutableValue<E> getValueGetter()
getValueGetter
in class AbstractImmutableSingleData<E extends Enum<E>,I extends ImmutableDataManipulator<I,M>,M extends DataManipulator<M,I>>
public DataContainer toContainer()
DataSerializable
DataContainer
.toContainer
in interface DataSerializable
toContainer
in class AbstractImmutableData<I extends ImmutableDataManipulator<I,M>,M extends DataManipulator<M,I>>
protected DataContainer fillContainer(DataContainer dataContainer)
AbstractImmutableData
fillContainer
in class AbstractImmutableData<I extends ImmutableDataManipulator<I,M>,M extends DataManipulator<M,I>>
dataContainer
- The data container