Interface MutableFloatProperty

All Superinterfaces:
FloatProperty, Functor<Float>, MutableProperty<Float>, NonNullProperty<Float>, Property<Float>
All Known Subinterfaces:
ObservableFloatProperty
All Known Implementing Classes:
DeserializedFloatProperty, FloatConfigOption, SimpleMutableFloatProperty, SimpleObservableFloatProperty, StoredFloatProperty

public interface MutableFloatProperty extends FloatProperty, MutableProperty<Float>
A property with a float value that can be changed.
  • Method Details

    • setValue

      default boolean setValue(Float value)
      Description copied from interface: MutableProperty
      Sets the value of this property.
      Specified by:
      setValue in interface MutableProperty<Float>
      Parameters:
      value - The new value
      Returns:
      true if the value was changed.
    • swap

      default float swap(float value)
      Replaces the value with a new value and returns its previous value.
      Parameters:
      value - The new value
      Returns:
      The previous value.
    • modify

      default boolean modify(FloatMapper mapper)
      Applies a mapper to the value of this property.
      Parameters:
      mapper - The mapper to apply
      Returns:
      true if the value was changed.
    • set

      boolean set(float value)
      Sets the value of this property.
      Parameters:
      value - The new value
      Returns:
      true if the value was changed.
    • viewProperty

      default FloatProperty viewProperty()
      Specified by:
      viewProperty in interface MutableProperty<Float>