org.apache.batik.css.engine
public class StringIntMap extends Object
| Nested Class Summary | |
|---|---|
| protected static class | StringIntMap.Entry
To manage collisions |
| Field Summary | |
|---|---|
| protected int | count
The number of entries |
| protected StringIntMap.Entry[] | table
The underlying array |
| Constructor Summary | |
|---|---|
| StringIntMap(int c)
Creates a new table. | |
| Method Summary | |
|---|---|
| int | get(String key)
Gets the value corresponding to the given string. |
| void | put(String key, int value)
Sets a new value for the given variable |
| protected void | rehash()
Rehash the table |
Parameters: c The capacity of the table.
Returns: the value or -1.