|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.batik.css.engine.value.StringMap
public class StringMap
A simple hashtable, not synchronized, with fixed load factor and with equality test made with '=='.
Nested Class Summary | |
---|---|
protected static class |
StringMap.Entry
To manage collisions |
Field Summary | |
---|---|
protected int |
count
The number of entries |
protected static int |
INITIAL_CAPACITY
The initial capacity |
protected StringMap.Entry[] |
table
The underlying array |
Constructor Summary | |
---|---|
StringMap()
Creates a new table. |
|
StringMap(StringMap t)
Creates a copy of the given StringMap object. |
Method Summary | |
---|---|
Object |
get(String key)
Gets the value corresponding to the given string. |
Object |
put(String key,
Object value)
Sets a new value for the given variable |
protected void |
rehash()
Rehash the table |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int INITIAL_CAPACITY
protected StringMap.Entry[] table
protected int count
Constructor Detail |
---|
public StringMap()
public StringMap(StringMap t)
t
- The table to copy.Method Detail |
---|
public Object get(String key)
public Object put(String key, Object value)
protected void rehash()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |