Class FloatProperty<K>


public class FloatProperty<K> extends NumericProperty<Float,K>
This is the float specific version of numeric property
  • Constructor Details

    • FloatProperty

      public FloatProperty(String name)

      Creates a float property with the given name.

      Parameters
      • name: the property name.
    • FloatProperty

      public FloatProperty(String name, Float value)

      Creates a float property with the given name and initial value.

      Parameters
      • name: the property name.

      • value: the initial property value.

  • Method Details

    • getFloat

      public float getFloat()

      Returns the value as a primitive, if the value is null/nullable this will fail...

      Returns

      the numeric value