public class CacheKey
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
hashCode
Pre-calculated in order to improve hashMap lookups
|
private java.lang.reflect.Type |
lookupType |
private java.lang.String |
name |
private java.lang.annotation.Annotation[] |
qualifiers |
private java.lang.String |
removalName |
private Unqualified |
unqualified |
Constructor and Description |
---|
CacheKey(java.lang.reflect.Type lookupType,
java.lang.String name,
Unqualified unqualified,
java.lang.annotation.Annotation... qualifiers)
Key used for LRU cache
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
matchesRemovalName(java.lang.String name)
Used when bulk removing a contract that has
been removed from the system
|
java.lang.String |
toString() |
private final java.lang.String removalName
private final java.lang.reflect.Type lookupType
private final java.lang.String name
private final java.lang.annotation.Annotation[] qualifiers
private final Unqualified unqualified
private final int hashCode
public CacheKey(java.lang.reflect.Type lookupType, java.lang.String name, Unqualified unqualified, java.lang.annotation.Annotation... qualifiers)
lookupType
- The type in the lookup callname
- The name in the lookup callqualifiers
- The set of qualifiers being looked uppublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean matchesRemovalName(java.lang.String name)
name
- The name of the contract that
has been removed from the systempublic java.lang.String toString()
toString
in class java.lang.Object