|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ref.Reference<T>
java.lang.ref.WeakReference
de.unihalle.informatik.Alida.helpers.ALDWeakHashMapEntry
class ALDWeakHashMapEntry
Weak reference hashmap entry.
Field Summary | |
---|---|
protected int |
hash
Hash value of referenced object. |
protected ALDWeakHashMapEntry |
next
Pointer to the next reference in hashmap list. |
protected java.lang.Object |
value
Referenced object itself. |
Constructor Summary | |
---|---|
protected |
ALDWeakHashMapEntry(int _hash,
java.lang.Object _key,
java.lang.Object _value,
ALDWeakHashMapEntry _next,
java.lang.ref.ReferenceQueue<java.lang.Object> queue)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
getKey()
Returns the key of this hashmap element. |
ALDWeakHashMapEntry |
getNext()
Returns reference to subsequent hash element. |
java.lang.Object |
getValue()
Returns the value of this hashmap element. |
java.lang.Object |
setValue(java.lang.Object _value)
Sets the value of the hashmap entry. |
Methods inherited from class java.lang.ref.Reference |
---|
clear, enqueue, get, isEnqueued |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int hash
protected volatile ALDWeakHashMapEntry next
protected volatile java.lang.Object value
Constructor Detail |
---|
protected ALDWeakHashMapEntry(int _hash, java.lang.Object _key, java.lang.Object _value, ALDWeakHashMapEntry _next, java.lang.ref.ReferenceQueue<java.lang.Object> queue)
_hash
- Hash value._key
- Key object._value
- Hashmap value of the object._next
- Reference to subsequent object.queue
- Queue for managing references of deleted objects.Method Detail |
---|
public java.lang.Object getKey()
public ALDWeakHashMapEntry getNext()
public java.lang.Object getValue()
public java.lang.Object setValue(java.lang.Object _value)
_value
- New value of this object reference.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |