Class DeserializedIntProperty

All Implemented Interfaces:
Destructible, IntProperty, MutableIntProperty, MutableProperty<Integer>, NonNullProperty<Integer>, ObservableIntProperty, ObservableProperty<Integer>, SimpleObservableProperty<Integer>, Property<Integer>, Functor<Integer>

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

  • Method Details

    • createValue

      @Contract("null, _, _ -> param3") protected static <Data> int createValue(Data data, DeserializedIntProperty.ValueFactory<Data> valueFactory, int 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