org.jvnet.hk2.internal
Class CacheKey

java.lang.Object
  extended by org.jvnet.hk2.internal.CacheKey

public class CacheKey
extends java.lang.Object

This is the cache key, which encapsulates very specific lookup queries. The point of this is to be useable as the key in a hash map, so that equals and hashCode must work properly

Author:
jwells

Constructor Summary
CacheKey(java.lang.reflect.Type lookupType, java.lang.String name, java.lang.annotation.Annotation... qualifiers)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
static boolean safeEquals(java.lang.Object a, java.lang.Object b)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheKey

public CacheKey(java.lang.reflect.Type lookupType,
                java.lang.String name,
                java.lang.annotation.Annotation... qualifiers)
Method Detail

safeEquals

public static boolean safeEquals(java.lang.Object a,
                                 java.lang.Object b)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 Oracle Corporation. All Rights Reserved.