public class IntProperty<K>

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

name String
the property name.

IntProperty

public IntProperty(String name, Integer value)
Creates an integer property with the given name and initial value.

Parameters

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