|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.util.SymbolHash
public class SymbolHash
This class is an unsynchronized hash table primary used for String to Object mapping.
The hash code uses the same algorithm as SymbolTable class.
Constructor Summary | |
---|---|
SymbolHash()
Constructs a key table with the default size. |
|
SymbolHash(int size)
Constructs a key table with a given size. |
Method Summary | |
---|---|
void |
clear()
Remove all key/value assocaition. |
java.lang.Object |
get(java.lang.Object key)
Get the value associated with the given key. |
int |
getLength()
Get the number of key/value pairs stored in this table. |
int |
getValues(java.lang.Object[] elements,
int from)
Add all values to the given array. |
SymbolHash |
makeClone()
Make a clone of this object. |
void |
put(java.lang.Object key,
java.lang.Object value)
Adds the key/value mapping to the key table. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SymbolHash()
public SymbolHash(int size)
size
- the size of the key table.Method Detail |
---|
public void put(java.lang.Object key, java.lang.Object value)
key
- value
- public java.lang.Object get(java.lang.Object key)
key
-
public int getLength()
public int getValues(java.lang.Object[] elements, int from)
elements
- the array to store the elementsfrom
- where to start store element in the array
public SymbolHash makeClone()
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |