Package org.eclipse.emf.common.util
Class WeakInterningHashSet.SelfCleaningEntry<E>
java.lang.Object
java.lang.ref.Reference<E>
java.lang.ref.WeakReference<E>
org.eclipse.emf.common.util.WeakInterningHashSet.Entry<E>
org.eclipse.emf.common.util.WeakInterningHashSet.SelfCleaningEntry<E>
- Enclosing class:
WeakInterningHashSet<E>
protected static class WeakInterningHashSet.SelfCleaningEntry<E>
extends WeakInterningHashSet.Entry<E>
A specialized external entry managed by the
external queue that calls clear() to remove this entry from its set.-
Field Summary
FieldsFields inherited from class org.eclipse.emf.common.util.WeakInterningHashSet.Entry
hashCode, next -
Constructor Summary
ConstructorsConstructorDescriptionSelfCleaningEntry(WeakInterningHashSet<E> set, E object, int hashCode, ReferenceQueue<? super E> queue) Creates an entry for the given set, for the object with the given hash code, managed by the given queue. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Specialized to callWeakInterningHashSet.Entry.doClear().Methods inherited from class org.eclipse.emf.common.util.WeakInterningHashSet.Entry
clear, doClear, getNextEntry, toStringMethods inherited from class java.lang.ref.Reference
clone, enqueue, get, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
set
-
-
Constructor Details
-
SelfCleaningEntry
public SelfCleaningEntry(WeakInterningHashSet<E> set, E object, int hashCode, ReferenceQueue<? super E> queue) Creates an entry for the given set, for the object with the given hash code, managed by the given queue.
-
-
Method Details
-
clear
public void clear()Description copied from class:WeakInterningHashSet.EntrySpecialized to callWeakInterningHashSet.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 inWeakInterningHashSet.Entry.doClear().- Overrides:
clearin classWeakInterningHashSet.Entry<E>
-