Class RangedMutableIntProperty
java.lang.Object
dev.prozilla.pine.common.property.mutable.SimpleMutableIntProperty
dev.prozilla.pine.common.property.mutable.RangedMutableIntProperty
- All Implemented Interfaces:
IntProperty,MutableIntProperty,MutableProperty<Integer>,NonNullProperty<Integer>,Property<Integer>,Functor<Integer>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRangedMutableIntProperty(int initialValue, int min, int max, WrapMode wrapMode) RangedMutableIntProperty(int min, int max, WrapMode wrapMode) -
Method Summary
Methods inherited from class dev.prozilla.pine.common.property.mutable.SimpleMutableIntProperty
get, onValueChangeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.prozilla.pine.common.property.IntProperty
getValue, getValueOr, has, hasProperty, isZeroProperty, map, replaceNull, requireValueMethods inherited from interface dev.prozilla.pine.common.property.mutable.MutableIntProperty
modify, setValue, swap, viewPropertyMethods inherited from interface dev.prozilla.pine.common.property.mutable.MutableProperty
modifyValue, swapValueMethods inherited from interface dev.prozilla.pine.common.property.NonNullProperty
isNotNull, isNotNullPropertyMethods inherited from interface dev.prozilla.pine.common.property.Property
hasValue, hasValueProperty, isNull, map, snapshot, toStringProperty
-
Field Details
-
min
protected int min -
max
protected int max -
wrapMode
-
-
Constructor Details
-
RangedMutableIntProperty
-
RangedMutableIntProperty
-
-
Method Details
-
set
public boolean set(int value) Description copied from interface:MutableIntPropertySets the value of this property.- Specified by:
setin interfaceMutableIntProperty- Overrides:
setin classSimpleMutableIntProperty- Parameters:
value- The new value- Returns:
trueif the value was changed.
-
setRange
public void setRange(int min, int max) -
setMin
public void setMin(int min) -
setMax
public void setMax(int max) -
setWrapMode
-