org.apache.batik.util
public class SoftDoublyIndexedTable extends Object
| Nested Class Summary | |
|---|---|
| protected class | SoftDoublyIndexedTable.Entry
To manage collisions |
| Field Summary | |
|---|---|
| protected int | count
The number of entries |
| protected static int | INITIAL_CAPACITY
The initial capacity |
| protected ReferenceQueue | referenceQueue
The reference queue. |
| protected SoftDoublyIndexedTable.Entry[] | table
The underlying array |
| Constructor Summary | |
|---|---|
| SoftDoublyIndexedTable()
Creates a new SoftDoublyIndexedTable. | |
| SoftDoublyIndexedTable(int c)
Creates a new DoublyIndexedTable. | |
| Method Summary | |
|---|---|
| void | clear()
Clears the table. |
| Object | get(Object o1, Object o2)
Gets the value of a variable |
| protected int | hashCode(Object o1, Object o2)
Computes a hash code corresponding to the given objects. |
| Object | put(Object o1, Object o2, Object value)
Sets a new value for the given variable |
| protected void | rehash()
Rehash the table |
| protected void | removeClearedEntries()
Removes the cleared entries. |
| int | size()
Returns the size of this table. |
Parameters: c The inital capacity.
Returns: the value or null
Returns: the old value or null