org.apache.batik.css.engine.value
public class StringMap extends Object
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 |
Parameters: t The table to copy.
Returns: the value or null
Returns: the old value or null