M
- The manipulator typeI
- The immutable manipulator typepublic abstract class AbstractBooleanData<M extends DataManipulator<M,I>,I extends ImmutableDataManipulator<I,M>> extends AbstractSingleData<Boolean,M,I>
DataManipulator
dealing specifically with a
boolean
value type.defaultValue, usedKey, value
Modifier | Constructor and Description |
---|---|
protected |
AbstractBooleanData(boolean value,
Key<? extends BaseValue<Boolean>> usedKey,
boolean defaultValue)
Deprecated.
Use
AbstractBooleanData(Key, boolean, boolean) instead. |
protected |
AbstractBooleanData(Key<Value<Boolean>> usedKey,
boolean value) |
protected |
AbstractBooleanData(Key<Value<Boolean>> usedKey,
boolean value,
boolean defaultValue) |
Modifier and Type | Method and Description |
---|---|
protected Value<Boolean> |
getValueGetter()
Gets the
Value as a method since this manipulator only focuses
on a single value. |
DataContainer |
toContainer()
Serializes this object into a comprehensible
DataContainer . |
asImmutable, equals, fillContainer, get, getValue, hashCode, registerGettersAndSetters, setValue, supports
getKeys, getValue, getValues, registerFieldGetter, registerFieldSetter, registerKeyValue, set, transform
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copy, fill, fill, from, set, set, set
getContentVersion
getOrElse, getOrNull, require, supports
@Deprecated protected AbstractBooleanData(boolean value, Key<? extends BaseValue<Boolean>> usedKey, boolean defaultValue)
AbstractBooleanData(Key, boolean, boolean)
instead.protected Value<Boolean> getValueGetter()
AbstractSingleData
Value
as a method since this manipulator only focuses
on a single value.getValueGetter
in class AbstractSingleData<Boolean,M extends DataManipulator<M,I>,I extends ImmutableDataManipulator<I,M>>
public DataContainer toContainer()
DataSerializable
DataContainer
.toContainer
in interface DataSerializable
toContainer
in class AbstractData<M extends DataManipulator<M,I>,I extends ImmutableDataManipulator<I,M>>