public class IntegerProperty extends AbstractProperty<Integer>
Integer
value.defaultValue, key
Constructor and Description |
---|
IntegerProperty(String key,
int defaultValue)
Constructs a new
IntegerProperty . |
Modifier and Type | Method and Description |
---|---|
Integer |
get()
Replies the value of this property.
|
boolean |
parseAndPut(String value)
parses and saves an integer value
|
boolean |
put(Integer value)
Sets this property to the specified value.
|
getDefaultValue, getKey, isSet, remove
public IntegerProperty(String key, int defaultValue)
IntegerProperty
.key
- The property keydefaultValue
- The default valuepublic Integer get()
AbstractProperty
get
in class AbstractProperty<Integer>
public boolean put(Integer value)
AbstractProperty
put
in class AbstractProperty<Integer>
value
- The new value of this propertypublic boolean parseAndPut(String value)
value
- the value to be parsed