public class FloatProperty<K>
This is the float specific version of numeric property
Constructors
public FloatProperty(String name) | Creates a float property with the given name. |
public FloatProperty(String name, Float value) | Creates a float property with the given name and initial value. |
Methods
public float getFloat() | Returns the value as a primitive, if the value is null/nullable this will fail… |
Inherited methods
Constructor details
FloatProperty
public FloatProperty(String name)Creates a float property with the given name.
Parameters
nameString- the property name.
FloatProperty
public FloatProperty(String name, Float value)Creates a float property with the given name and initial value.
Parameters
nameString- the property name.
valueFloat- 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