|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpalmed.option.Configuration
public final class Configuration
This class stores configuration keys and values.
| Constructor Summary | |
|---|---|
Configuration()
Create a configuration manager. |
|
| Method Summary | |
|---|---|
boolean |
get(java.lang.String key,
boolean initial)
Retrieve a boolean value. |
java.lang.String |
get(java.lang.String key,
java.lang.String initial)
Retrieve a string value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Configuration()
| Method Detail |
|---|
public boolean get(java.lang.String key,
boolean initial)
If the key does not exist it gets added with the initial value.
key - the key to look forinitial - the default value if the key is not found
public java.lang.String get(java.lang.String key,
java.lang.String initial)
If the key does not exist it gets added with the initial value.
key - the key to look forinitial - the default value if the key is not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||