Class StoredIntProperty
java.lang.Object
dev.prozilla.pine.common.property.storage.StoredProperty<Integer>
dev.prozilla.pine.common.property.storage.StoredIntProperty
- All Implemented Interfaces:
Destructible,IntProperty,MutableIntProperty,MutableObjectProperty<Integer>,MutableProperty<Integer>,NonNullProperty<Integer>,Property<Integer>,Functor<Integer>
-
Field Summary
Fields inherited from class dev.prozilla.pine.common.property.storage.StoredProperty
key, storage -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dev.prozilla.pine.common.property.storage.StoredProperty
destroy, isNotNull, setNull, setValue, setValue, toStringPropertyMethods 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
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.MutableObjectProperty
stealMethods 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
-
Constructor Details
-
StoredIntProperty
-
-
Method Details
-
set
public boolean set(int value) Description copied from interface:MutableIntPropertySets the value of this property.- Specified by:
setin interfaceMutableIntProperty- Parameters:
value- The new value- Returns:
trueif the value was changed.
-
getValue
Description copied from interface:PropertyReturns the value of this property.- Specified by:
getValuein interfaceIntProperty- Specified by:
getValuein interfaceProperty<Integer>- Specified by:
getValuein classStoredProperty<Integer>- Returns:
- The value of this property.
-
get
public int get()Description copied from interface:IntPropertyReturns the primitive value of this property.- Specified by:
getin interfaceIntProperty- Returns:
- The primitive value of this property.
-