|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.quilt.reg.Registry
A registry for storing Quilt run-time options. The registry stores key-value pairs, where the key takes the form of an array of Strings. The registry is sorted, but XXX there is currently no support for sequential access or partial-key access.
This class is not thread-safe.
Constructor Summary | |
Registry()
No-arg constructor. |
Method Summary | |
void |
clear()
Remove all elements from the registry. |
boolean |
containsKey(java.lang.String[] key)
|
java.lang.Object |
get(java.lang.String[] key)
Get an object from the registry. |
boolean |
isEmpty()
|
java.util.Set |
keySet()
XXX An overly powerful method. |
java.lang.Object |
put(java.lang.String[] key,
java.lang.Object value)
Add an object to the registry, overwriting any existing value. |
java.lang.Object |
remove(java.lang.String[] key)
Remove an item from the registry. |
int |
size()
|
java.lang.String[] |
splitClassName(java.lang.String name)
Convert a class or method name into a String array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Registry()
Method Detail |
public final void clear()
public final boolean containsKey(java.lang.String[] key)
public final java.lang.Object get(java.lang.String[] key)
key
- Array of strings, the unique key.
public final boolean isEmpty()
public java.util.Set keySet()
public final java.lang.Object put(java.lang.String[] key, java.lang.Object value)
key
- Array of Strings, the unique key. Must not be null.value
- Object to be stored under this key.
public final java.lang.Object remove(java.lang.String[] key)
key
- Array of Strings.
public final int size()
public final java.lang.String[] splitClassName(java.lang.String name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |