public abstract class AbstractImmutableSingleEnumData<E extends Enum<E>,I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,M>,M extends org.spongepowered.api.data.manipulator.DataManipulator<M,I>> extends AbstractImmutableSingleData<E,I,M>
Modifier and Type | Field and Description |
---|---|
protected org.spongepowered.api.data.value.immutable.ImmutableValue<E> |
cachedValue |
usedKey, value
Constructor and Description |
---|
AbstractImmutableSingleEnumData(Class<I> immutableClass,
E value,
E defaultValue,
org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<E>> usedKey,
Class<? extends M> mutableClass) |
Modifier and Type | Method and Description |
---|---|
M |
asMutable() |
int |
compareTo(I o) |
protected org.spongepowered.api.data.value.immutable.ImmutableValue<?> |
getValueGetter() |
org.spongepowered.api.data.DataContainer |
toContainer() |
org.spongepowered.api.data.value.immutable.ImmutableValue<E> |
type() |
get, getKeys, getValue, registerGetters, supports
copy, equals, getValue, getValues, hashCode, registerFieldGetter, registerKeyValue, with
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
public org.spongepowered.api.data.value.immutable.ImmutableValue<E> type()
protected org.spongepowered.api.data.value.immutable.ImmutableValue<?> getValueGetter()
public M asMutable()
asMutable
in interface org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,M>,M extends org.spongepowered.api.data.manipulator.DataManipulator<M,I>>
asMutable
in class AbstractImmutableSingleData<E extends Enum<E>,I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,M>,M extends org.spongepowered.api.data.manipulator.DataManipulator<M,I>>
public int compareTo(I o)
public org.spongepowered.api.data.DataContainer toContainer()
toContainer
in interface org.spongepowered.api.data.DataSerializable
toContainer
in class AbstractImmutableSingleData<E extends Enum<E>,I extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator<I,M>,M extends org.spongepowered.api.data.manipulator.DataManipulator<M,I>>