public interface ImmutableAgeableData extends ImmutableDataManipulator<ImmutableAgeableData,AgeableData>
ImmutableDataManipulator
for handling the "age" of an
Entity
.Modifier and Type | Method and Description |
---|---|
ImmutableValue<Boolean> |
adult()
Gets the
ImmutableValue for whether the age() is
considered to be an "adult". |
ImmutableBoundedValue<Integer> |
age()
Gets the
ImmutableBoundedValue for the "age" state. |
ImmutableValue<Boolean> |
baby()
Gets the
ImmutableValue for whether the age() is
considered to be a "baby". |
asMutable, copy, with, with
compareTo
toContainer
ImmutableBoundedValue<Integer> age()
ImmutableBoundedValue
for the "age" state.ImmutableValue<Boolean> baby()
ImmutableValue
for whether the age()
is
considered to be a "baby". If the value is false, adult()
should be true
and vice versa.ImmutableValue<Boolean> adult()
ImmutableValue
for whether the age()
is
considered to be an "adult". If the value is false, baby()
should be true
and vice versa.