|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.kernel.plugins.annotations.wb.CompositeKey<T,U>
T
- exact weak part typeU
- rest of the composite keypublic abstract class CompositeKey<T,U>
Composite map key with weak part notion.
Constructor Summary | |
---|---|
protected |
CompositeKey(T weakPart,
U[] rest)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
protected abstract ReferenceQueue<T> |
getReferenceQueue()
Get the reference queue holding gced references. |
protected int |
getRestHashCode()
Get rest hash code. |
protected int |
getWeakPartHashCode()
Get weak part hash code. |
int |
hashCode()
|
protected static int |
safeWeakHaskHode(WeakReference wr)
Get hash code from weak ref. |
protected boolean |
shouldCleanKeyRefs()
Allows optimization; i.e. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CompositeKey(T weakPart, U[] rest)
Method Detail |
---|
protected abstract ReferenceQueue<T> getReferenceQueue()
protected static int safeWeakHaskHode(WeakReference wr)
wr
- the weak reference
protected int getWeakPartHashCode()
protected int getRestHashCode()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
protected boolean shouldCleanKeyRefs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |