|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wangs.xmlutil.MultiKeyHashtable
This hashtable stores values using string array.
Field Summary | |
protected static java.lang.String |
_hashToken
|
protected java.util.Hashtable |
_map
|
Constructor Summary | |
MultiKeyHashtable()
|
Method Summary | |
protected java.lang.String |
_composeHashKey(java.lang.String[] keys)
Given a String array, compose a String value that follows the style of hashkey used in getNodeValuesHashedByNamedAttrs(). |
protected java.lang.String[] |
_decomposeHashKey(java.lang.String keys)
Given a String, create a string array with the keys as elements |
java.lang.Object |
get(java.lang.String[] keys)
This method retrieves the value at String array keys. |
java.util.Set |
keySet()
Returns an enumeration with the keys. |
void |
put(java.lang.String[] keys,
java.lang.Object value)
This method stores the value at String array keys. |
void |
putAll(MultiKeyHashtable pHash)
Copies all of the mappings from the specified MultiKeyHashtable to this MultiKeyHashtable. |
void |
reset()
Reset contents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String _hashToken
protected final java.util.Hashtable _map
Constructor Detail |
public MultiKeyHashtable()
Method Detail |
public java.lang.Object get(java.lang.String[] keys)
keys
- - String array, must not be null
java.lang.NullPointerException
- thrown if keys are nullpublic void put(java.lang.String[] keys, java.lang.Object value)
keys
- - must not be nullvalue
-
java.lang.NullPointerException
- thrown if key1 or key2 are nullpublic void putAll(MultiKeyHashtable pHash)
pHash
- The MultiKeyHashtable to be copied.public void reset()
public java.util.Set keySet()
protected java.lang.String _composeHashKey(java.lang.String[] keys)
protected java.lang.String[] _decomposeHashKey(java.lang.String keys)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |