Class SimpleMutableBooleanProperty

java.lang.Object
dev.prozilla.pine.common.property.mutable.SimpleMutableBooleanProperty
All Implemented Interfaces:
BooleanProperty, MutableBooleanProperty, MutableProperty<Boolean>, NonNullProperty<Boolean>, Property<Boolean>, Functor<Boolean>
Direct Known Subclasses:
SimpleObservableBooleanProperty

public class SimpleMutableBooleanProperty extends Object implements MutableBooleanProperty
  • Constructor Details

    • SimpleMutableBooleanProperty

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

    • set

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

      protected void onValueChange(boolean oldValue, boolean 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 boolean get()
      Description copied from interface: BooleanProperty
      Returns the primitive value of this property.
      Specified by:
      get in interface BooleanProperty
      Returns:
      The primitive value of this property.