|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClusterProperties
| Method Summary | |
|---|---|
Boolean |
getBoolean(String key)
Returns a boolean for the given property in this properties object. |
Boolean |
getBoolean(String key,
Boolean defaultValue)
Returns a boolean for the given property in this properties object. |
Integer |
getInteger(String key)
Returns an integer for the given property in this properties object. |
Integer |
getInteger(String key,
Integer defaultValue)
Returns an integer for the given property in this properties object. |
Long |
getLong(String key)
Returns a long for the given property in this properties object. |
Long |
getLong(String key,
Long defaultValue)
Returns a long for the given property in this properties object. |
String |
getProperty(String key)
Searches for the property with the specified key in this properties object. |
String |
getProperty(String key,
String defaultValue)
Searches for the property with the specified key in this properties object. |
void |
setProperty(String key,
String value)
Sets the given property. |
| Method Detail |
|---|
Integer getInteger(String key)
If the property is found and is successfully parsed as an Integer
value then the parsed integer value is returned. Otherwise null is
returned.
key - the property key.
Integer value
Integer getInteger(String key,
Integer defaultValue)
If the property is found and is successfully parsed as an Integer
value then the parsed integer value is returned. Otherwise the default
value is returned.
key - the property key.
Integer valueLong getLong(String key)
If the property is found and is successfully parsed as a Long
value then the parsed long value is returned. Otherwise null is
returned.
key - the property key.
Long value
Long getLong(String key,
Long defaultValue)
If the property is found and is successfully parsed as a Long
value then the parsed long value is returned. Otherwise the default
value is returned.
key - the property key.
Long valueBoolean getBoolean(String key)
If the property is found and is equal (ignoring case) to true then
Boolean.TRUE is returned. Otherwise Boolean.FALSE is returned.
key - the property key.
Boolean getBoolean(String key,
Boolean defaultValue)
If the property is not found then the default value is returned;
Otherwise if the property is equal (ignoring case) to true then
Boolean.TRUE is returned, if not then Boolean.FALSE is
returned.
key - the property key.
String getProperty(String key)
If the property is not found then null is returned.
key - the property key.
String getProperty(String key,
String defaultValue)
If the property is not found then the default value is returned
key - the property key.
void setProperty(String key,
String value)
throws NullPointerException
The given system property is set to the supplied string value.
key - the property keyvalue - the string to set the property to
NullPointerException - if the key or value is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||