|
GigaSpaces XAP 9.7.2 API | |||||||||
| 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
com.sun.jini.collection.WeakSoftTable.WeakKey
public static class WeakSoftTable.WeakKey
A key that maintains a weak reference to an object which should be compared by object identity.
| Constructor Summary | |
|---|---|
|
WeakSoftTable.WeakKey(Object key)
Creates a key that holds a weak reference to the argument and compares it using ==. |
protected |
WeakSoftTable.WeakKey(WeakSoftTable.WeakKey weakKey,
ReferenceQueue queue)
Creates a copy of the key registered with the queue. |
| Method Summary | |
|---|---|
void |
cleared(Map map)
Called with the containing map when this instance's reference is cleared, to remove the associated entry from the map. |
WeakSoftTable.RemovableReference |
copy(ReferenceQueue queue)
Returns a copy of this instance registered with the specified queue. |
boolean |
equals(Object o)
Returns true if the argument is an instance of the same concrete class, and if both objects had null keys, or if neither object has had its weak key cleared and their values are ==. |
int |
hashCode()
|
| Methods inherited from class java.lang.ref.Reference |
|---|
clear, enqueue, get, isEnqueued |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeakSoftTable.WeakKey(Object key)
protected WeakSoftTable.WeakKey(WeakSoftTable.WeakKey weakKey,
ReferenceQueue queue)
| Method Detail |
|---|
public WeakSoftTable.RemovableReference copy(ReferenceQueue queue)
WeakSoftTable.RemovableReference
copy in interface WeakSoftTable.RemovableReferencequeue - the queue with which this instance should be registered
public void cleared(Map map)
WeakSoftTable.RemovableReference
cleared in interface WeakSoftTable.RemovableReferencemap - the map from which this newly cleared instance should be
removedpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Object
|
GigaSpaces XAP 9.7.2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||