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 |
|---|
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, toStringprotected final WeakInterningHashSet<E> set
public SelfCleaningEntry(WeakInterningHashSet<E> set, E object, int hashCode, java.lang.ref.ReferenceQueue<? super E> queue)
public void clear()
WeakInterningHashSet.EntryWeakInterningHashSet.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>Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature