Class SimpleMutableIntProperty

java.lang.Object
dev.prozilla.pine.common.property.mutable.SimpleMutableIntProperty
All Implemented Interfaces:
IntProperty, MutableIntProperty, MutableProperty<Integer>, NonNullProperty<Integer>, Property<Integer>, Functor<Integer>
Direct Known Subclasses:
RangedMutableIntProperty, SimpleObservableIntProperty

public class SimpleMutableIntProperty extends Object implements MutableIntProperty
  • Constructor Details

    • SimpleMutableIntProperty

      public SimpleMutableIntProperty(int initialValue)
      Creates a mutable property with an initial value.
      Parameters:
      initialValue - The initial value
  • Method Details

    • set

      public boolean set(int value)
      Description copied from interface: MutableIntProperty
      Sets the value of this property.
      Specified by:
      set in interface MutableIntProperty
      Parameters:
      value - The new value
      Returns:
      true if the value was changed.
    • onValueChange

      protected void onValueChange(int oldValue, int newValue)
      This method is called whenever the value of this property changes.

      The default implementation does nothing.

      Parameters:
      oldValue - The previous value
      newValue - The new value
    • get

      public int get()
      Description copied from interface: IntProperty
      Returns the primitive value of this property.
      Specified by:
      get in interface IntProperty
      Returns:
      The primitive value of this property.