|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.ObjectOutputStream.ReplaceTable
Lightweight identity hash table which maps objects to replacement objects.
Field Summary | |
private ObjectOutputStream.HandleTable |
htab
|
private Object[] |
reps
|
Constructor Summary | |
(package private) |
ObjectOutputStream.ReplaceTable(int initialCapacity,
float loadFactor)
Creates new ReplaceTable with given capacity and load factor. |
Method Summary | |
(package private) void |
assign(Object obj,
Object rep)
Enters mapping from object to replacement object. |
(package private) void |
clear()
Resets table to its initial (empty) state. |
private void |
grow()
Increases table capacity. |
(package private) Object |
lookup(Object obj)
Looks up and returns replacement for given object. |
(package private) int |
size()
Returns the number of mappings currently in table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final ObjectOutputStream.HandleTable htab
private Object[] reps
Constructor Detail |
ObjectOutputStream.ReplaceTable(int initialCapacity, float loadFactor)
Method Detail |
void assign(Object obj, Object rep)
Object lookup(Object obj)
void clear()
int size()
private void grow()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |