org.codehaus.groovy.grails.orm.hibernate.support
Class SoftKey<T>

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.SoftReference<T>
          extended by org.codehaus.groovy.grails.orm.hibernate.support.SoftKey<T>

 class SoftKey<T>
extends SoftReference<T>

SoftReference key to be used with ConcurrentHashMap

Author:
Lari Hotari

Field Summary
(package private)  int hash
           
 
Constructor Summary
SoftKey(T referent)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.ref.SoftReference
get
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, isEnqueued
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hash

int hash
Constructor Detail

SoftKey

public SoftKey(T referent)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object