|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.util.SoftDoublyIndexedTable
This class represents a doubly indexed hash table, which holds soft references to the contained values..
Inner 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 java.lang.ref.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. |
java.lang.Object |
get(java.lang.Object o1,
java.lang.Object o2)
Gets the value of a variable |
protected int |
hashCode(java.lang.Object o1,
java.lang.Object o2)
Computes a hash code corresponding to the given objects. |
java.lang.Object |
put(java.lang.Object o1,
java.lang.Object o2,
java.lang.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. |
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 SoftDoublyIndexedTable.Entry[] table
protected int count
protected java.lang.ref.ReferenceQueue referenceQueue
Constructor Detail |
public SoftDoublyIndexedTable()
public SoftDoublyIndexedTable(int c)
c
- The inital capacity.Method Detail |
public int size()
public java.lang.Object get(java.lang.Object o1, java.lang.Object o2)
public java.lang.Object put(java.lang.Object o1, java.lang.Object o2, java.lang.Object value)
public void clear()
protected void rehash()
protected int hashCode(java.lang.Object o1, java.lang.Object o2)
protected void removeClearedEntries()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |