protected static class WeakInterningHashSet.SelfCleaningEntry<E> extends WeakInterningHashSet.Entry<E>
external queue
that calls clear()
to remove this entry from its set.Modifier and Type | Field and Description |
---|---|
protected WeakInterningHashSet<E> |
set |
hashCode, next
Constructor and Description |
---|
WeakInterningHashSet.SelfCleaningEntry(WeakInterningHashSet<E> set,
E object,
int hashCode,
java.lang.ref.ReferenceQueue<? super E> queue)
Creates an entry for the given set, for the object with the given hash code, managed by the given queue.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Specialized to call
WeakInterningHashSet.Entry.doClear() . |
clear, doClear, getNextEntry, toString
protected final WeakInterningHashSet<E> set
public WeakInterningHashSet.SelfCleaningEntry(WeakInterningHashSet<E> set, E object, int hashCode, java.lang.ref.ReferenceQueue<? super E> queue)
public void clear()
WeakInterningHashSet.Entry
WeakInterningHashSet.Entry.doClear()
.
Derived classes should generally override this method only to impose synchronization.
All the cleaning up of the fields of the entry should be done in WeakInterningHashSet.Entry.doClear()
.clear
in class WeakInterningHashSet.Entry<E>