public class IntProperty<K>
This is the integer specific version of numeric property
Constructors
public IntProperty(String name) | Creates an integer property with the given name. |
public IntProperty(String name, Integer value) | Creates an integer property with the given name and initial value. |
Methods
public int getInt() | Returns the value as a primitive, if the value is null/nullable this will fail… |
Inherited methods
Constructor details
IntProperty
public IntProperty(String name)Creates an integer property with the given name.
Parameters
nameString- the property name.
IntProperty
public IntProperty(String name, Integer value)Creates an integer property with the given name and initial value.
Parameters
nameString- the property name.
valueInteger- the initial property value.
Method details
getInt
public int getInt()Returns the value as a primitive, if the value is null/nullable this will fail…
Returns
the numeric value