org.apache.batik.dom.util
public class IntTable extends Object implements Serializable
| Nested Class Summary | |
|---|---|
| protected static class | IntTable.Entry
To manage collisions. |
| Field Summary | |
|---|---|
| protected int | count
The number of entries |
| protected static int | INITIAL_CAPACITY
The initial capacity |
| protected IntTable.Entry[] | table
The underlying array |
| Constructor Summary | |
|---|---|
| IntTable()
Creates a new table. | |
| IntTable(int c)
Creates a new table. | |
| IntTable(IntTable t)
Creates a copy of the given HashTable object. | |
| Method Summary | |
|---|---|
| void | clear()
Clears the table. |
| int | dec(Object key)
Decrements the value associated with the given key. |
| protected IntTable.Entry | find(Object key)
Finds the Entry with the given key. |
| int | get(Object key)
Returns the value associated with the given key. |
| int | inc(Object key)
Increments the value associated with the given key. |
| int | put(Object key, int value)
Sets the value associated with the given key. |
| protected void | rehash()
Rehashes the table. |
| int | remove(Object key)
Removes an entry from the table. |
| int | size()
Returns the size of this table. |
Parameters: c The initial capacity.
Parameters: t The table to copy.