Class SimpleMutableObjectProperty<T>
java.lang.Object
dev.prozilla.pine.common.property.mutable.SimpleMutableObjectProperty<T>
- All Implemented Interfaces:
MutableObjectProperty<T>,MutableProperty<T>,Property<T>,Functor<T>
- Direct Known Subclasses:
AnalogInputProperty,GamepadButtonProperty,GamepadButtonsProperty,KeyboardKeyProperty,KeyboardKeysProperty,MouseButtonProperty,MouseButtonsProperty,SimpleMutableStringProperty,SimpleObservableObjectProperty
A property whose value can be changed using a setter.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a mutable property without an initial value.SimpleMutableObjectProperty(T initialValue) Creates a mutable property with an initial value. -
Method Summary
Methods 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.mutable.MutableObjectProperty
setNull, stealMethods inherited from interface dev.prozilla.pine.common.property.mutable.MutableProperty
modifyValue, swapValue, viewPropertyMethods inherited from interface dev.prozilla.pine.common.property.Property
getValueOr, hasValue, hasValueProperty, isNotNull, isNotNullProperty, isNull, map, replaceNull, requireValue, snapshot, toStringProperty
-
Constructor Details
-
SimpleMutableObjectProperty
public SimpleMutableObjectProperty()Creates a mutable property without an initial value. -
SimpleMutableObjectProperty
Creates a mutable property with an initial value.- Parameters:
initialValue- The initial value
-
-
Method Details
-
setValue
Description copied from interface:MutablePropertySets the value of this property.- Specified by:
setValuein interfaceMutableProperty<T>- Parameters:
value- The new value- Returns:
trueif the value was changed.
-
onValueChange
This method is called whenever the value of this property changes.The default implementation does nothing.
- Parameters:
oldValue- The previous valuenewValue- The new value
-
getValue
Description copied from interface:PropertyReturns the value of this property.
-