Package org.eclipse.emf.common.util
Class WeakInterningHashSet.Entry<E>
java.lang.Object
java.lang.ref.Reference<E>
java.lang.ref.WeakReference<E>
org.eclipse.emf.common.util.WeakInterningHashSet.Entry<E>
- Direct Known Subclasses:
Pool.PoolEntry,WeakInterningHashSet.SelfCleaningEntry
- Enclosing class:
WeakInterningHashSet<E>
A weak reference holder that caches the hash code of the referent and is
chained in the WeakInterningHashSet.entries to handle collisions.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe cached hash code.The next entry in the collision chain. -
Constructor Summary
ConstructorsConstructorDescriptionEntry(E object, int hashCode, ReferenceQueue<? super E> queue) Creates an entry thats part of the set'sWeakInterningHashSet.internalQueueorWeakInterningHashSet.externalQueue. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Specialized to calldoClear().final voidclear(WeakInterningHashSet<E> set) protected voiddoClear()final WeakInterningHashSet.Entry<E> Returns the next entry in the collision chain with the samehashCode.toString()Returns the string value of thereferent.Methods inherited from class java.lang.ref.Reference
clone, enqueue, get, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
hashCode
public final int hashCodeThe cached hash code. -
next
The next entry in the collision chain.
-
-
Constructor Details
-
Entry
Creates an entry thats part of the set'sWeakInterningHashSet.internalQueueorWeakInterningHashSet.externalQueue.
-
-
Method Details