public class FloatProperty<K>

  1. Object
  2. PropertyBase<Float, K>
  3. Property<Float, K>
  4. NumericProperty<Float, K>
  5. FloatProperty
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

name String
the property name.

FloatProperty

public FloatProperty(String name, Float value)
Creates a float property with the given name and initial value.

Parameters

name String
the property name.
value Float
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