Class DeserializedBooleanProperty

All Implemented Interfaces:
Destructible, BooleanProperty, MutableBooleanProperty, MutableProperty<Boolean>, NonNullProperty<Boolean>, ObservableBooleanProperty, ObservableProperty<Boolean>, SimpleObservableProperty<Boolean>, Property<Boolean>, Functor<Boolean>

public class DeserializedBooleanProperty extends SimpleObservableBooleanProperty
A property whose value is retrieved from a deserialized file.
  • Constructor Details

  • Method Details

    • createValue

      @Contract("null, _, _ -> param3") protected static <Data> boolean createValue(Data data, DeserializedBooleanProperty.ValueFactory<Data> valueFactory, boolean fallbackValue)
      Retrieves the value from a given source of data using a value factory.
      Type Parameters:
      Data - The type of data
      Parameters:
      data - The data
      valueFactory - The value factory
      fallbackValue - An optional fallback value, for when the data is null
      Returns:
      The value retrieved from the data