Package org.n52.faroe.settings
Class IntegerSettingDefinition
- java.lang.Object
-
- org.n52.faroe.AbstractOrdered
-
- org.n52.faroe.AbstractSettingDefinition<Integer>
-
- org.n52.faroe.settings.IntegerSettingDefinition
-
- All Implemented Interfaces:
Serializable,Comparable<Ordered>,Ordered,SettingDefinition<Integer>
public class IntegerSettingDefinition extends AbstractSettingDefinition<Integer>
SettingDefinitionforIntegers.- Since:
- 1.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IntegerSettingDefinition()Constructs a newIntegerSettingDefinition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetMaximum()Get the value of maximum.IntegergetMinimum()Get the value of minimum.booleanhasMaximum()booleanhasMinimum()booleanisExclusiveMaximum()Get the value of exclusiveMaximum.booleanisExclusiveMinimum()Get the value of exclusiveMinimum.IntegerSettingDefinitionsetExclusiveMaximum(boolean exclusiveMaximum)Set the value of exclusiveMaximum.IntegerSettingDefinitionsetExclusiveMinimum(boolean exclusiveMinimum)Set the value of exclusiveMinimum.IntegerSettingDefinitionsetMaximum(Integer maximum)Set the value of maximum.IntegerSettingDefinitionsetMinimum(Integer minimum)Set the value of minimum.-
Methods inherited from class org.n52.faroe.AbstractSettingDefinition
equals, getDefaultValue, getDescription, getGroup, getKey, getSuborder, getTitle, getType, hasDefaultValue, hasDescription, hasGroup, hashCode, hasStringProperty, hasTitle, isOptional, setDefaultValue, setDescription, setGroup, setKey, setOptional, setTitle, toString
-
Methods inherited from class org.n52.faroe.AbstractOrdered
compareTo, getOrder, setOrder
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.n52.faroe.SettingDefinition
getGroup, getOptionalDefaultValue
-
-
-
-
Method Detail
-
getMinimum
public Integer getMinimum()
Get the value of minimum.- Returns:
- the value of minimum
-
hasMinimum
public boolean hasMinimum()
- Returns:
- whether a minimum value is set
-
setMinimum
public IntegerSettingDefinition setMinimum(Integer minimum)
Set the value of minimum.- Parameters:
minimum- new value of minimum- Returns:
- this
-
getMaximum
public Integer getMaximum()
Get the value of maximum.- Returns:
- the value of maximum
-
hasMaximum
public boolean hasMaximum()
- Returns:
- whether a maximum value is set
-
setMaximum
public IntegerSettingDefinition setMaximum(Integer maximum)
Set the value of maximum.- Parameters:
maximum- new value of maximum- Returns:
- this
-
isExclusiveMaximum
public boolean isExclusiveMaximum()
Get the value of exclusiveMaximum.- Returns:
- the value of exclusiveMaximum
-
setExclusiveMaximum
public IntegerSettingDefinition setExclusiveMaximum(boolean exclusiveMaximum)
Set the value of exclusiveMaximum.- Parameters:
exclusiveMaximum- new value of exclusiveMaximum- Returns:
- this
-
isExclusiveMinimum
public boolean isExclusiveMinimum()
Get the value of exclusiveMinimum.- Returns:
- the value of exclusiveMinimum
-
setExclusiveMinimum
public IntegerSettingDefinition setExclusiveMinimum(boolean exclusiveMinimum)
Set the value of exclusiveMinimum.- Parameters:
exclusiveMinimum- new value of exclusiveMinimum- Returns:
- this
-
-