|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eigenbase.util.property.Property
org.eigenbase.util.property.IntegerProperty
public class IntegerProperty
Definition and accessor for an integer property.
Field Summary |
---|
Fields inherited from class org.eigenbase.util.property.Property |
---|
properties |
Constructor Summary | |
---|---|
IntegerProperty(java.util.Properties properties,
java.lang.String path)
Creates an Integer property which has no default value. |
|
IntegerProperty(java.util.Properties properties,
java.lang.String path,
int defaultValue)
Creates an Integer property. |
Method Summary | |
---|---|
int |
get()
Retrieves the value of this integer property. |
int |
get(int defaultValue)
Retrieves the value of this integer property. |
void |
set(int value)
Sets the value of this integer property. |
Methods inherited from class org.eigenbase.util.property.Property |
---|
addTrigger, booleanValue, getDefaultValue, getInternal, getPath, getString, isSet, onChange, removeTrigger, setString, stringValue, toBoolean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntegerProperty(java.util.Properties properties, java.lang.String path, int defaultValue)
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(java.util.Properties properties, java.lang.String path)
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".Method Detail |
---|
public int get()
public int get(int defaultValue)
public void set(int value)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |