org.eclipse.internal.xtend.util
Class WeakInterningHashSet.Entry<E>

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.WeakReference<E>
          extended by org.eclipse.internal.xtend.util.WeakInterningHashSet.Entry<E>
Enclosing class:
WeakInterningHashSet<E>

protected static class WeakInterningHashSet.Entry<E>
extends java.lang.ref.WeakReference<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
 int hashCode
          The cached hash code.
 WeakInterningHashSet.Entry<E> next
          The next entry in the collision chain.
 
Constructor Summary
WeakInterningHashSet.Entry(E object, int hashCode, java.lang.ref.ReferenceQueue<? super E> q)
          Creates an entry thats part of the set's WeakInterningHashSet.queue.
 
Method Summary
 WeakInterningHashSet.Entry<E> getNextEntry()
          Returns the next entry in the collision chain with the same hashCode.
 java.lang.String toString()
          Returns the string value of the referent.
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hashCode

public int hashCode
The cached hash code.


next

public WeakInterningHashSet.Entry<E> next
The next entry in the collision chain.

Constructor Detail

WeakInterningHashSet.Entry

public WeakInterningHashSet.Entry(E object,
                                  int hashCode,
                                  java.lang.ref.ReferenceQueue<? super E> q)
Creates an entry thats part of the set's WeakInterningHashSet.queue.

Method Detail

getNextEntry

public WeakInterningHashSet.Entry<E> getNextEntry()
Returns the next entry in the collision chain with the same hashCode.


toString

public java.lang.String toString()
Returns the string value of the referent.

Overrides:
toString in class java.lang.Object