public class IntegerProperty extends Property
properties| Constructor and Description |
|---|
IntegerProperty(Properties properties,
String path)
Creates an Integer property which has no default value.
|
IntegerProperty(Properties properties,
String path,
int defaultValue)
Creates an Integer property.
|
IntegerProperty(Properties properties,
String path,
int minValue,
int maxValue)
Creates an Integer property with fixed minimum and maximum values.
|
IntegerProperty(Properties properties,
String path,
int defaultValue,
int minValue,
int maxValue)
Creates an Integer property with a default value and fixed minimum and
maximum values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
get()
Retrieves the value of this integer property according to these rules.
|
int |
get(int defaultValue)
Retrieves the value of this integer property.
|
int |
set(int value)
Sets the value of this integer property.
|
addTrigger, booleanValue, getDefaultValue, getInternal, getPath, getString, isSet, onChange, removeTrigger, setString, stringValue, toBooleanpublic IntegerProperty(Properties properties, String path, int defaultValue)
Integer.MIN_VALUE and Integer.MAX_VALUE.properties - Properties object which holds values for this property.path - Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".defaultValue - Default value.public IntegerProperty(Properties properties, String path)
Integer.MIN_VALUE and Integer.MAX_VALUE.properties - Properties object which holds values for this property.path - Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".public IntegerProperty(Properties properties, String path, int defaultValue, int minValue, int maxValue)
properties - Properties object which holds values for this property.path - Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".defaultValue - Default value.minValue - the minimum value of this property (inclusive)maxValue - the maximum value of this property (inclusive)IllegalArgumentException - if defaultValue is not in
the range [minValue, maxValue].public IntegerProperty(Properties properties, String path, int minValue, int maxValue)
properties - Properties object which holds values for this property.path - Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".minValue - the minimum value of this property (inclusive)maxValue - the maximum value of this property (inclusive)public int get()
public int get(int defaultValue)
public int set(int value)
Copyright © 2012–2015 Julian Hyde. All rights reserved.