public final class AnnotationBundleKey
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.annotation.Annotation[] |
_annotations |
private boolean |
_annotationsCopied |
private int |
_hashCode |
private java.lang.Class<?> |
_type
We also seem to need the type as part of the key (as per [Issue#11]);
hopefully that and annotations are enough (if not, may need to reconsider
the way caching is done, and possibly only cache derivation of annotations,
not mapper or reader/writer).
|
private static java.lang.annotation.Annotation[] |
NO_ANNOTATIONS |
Modifier | Constructor and Description |
---|---|
|
AnnotationBundleKey(java.lang.annotation.Annotation[] annotations,
java.lang.Class<?> type) |
private |
AnnotationBundleKey(java.lang.annotation.Annotation[] annotations,
java.lang.Class<?> type,
int hashCode) |
Modifier and Type | Method and Description |
---|---|
private boolean |
_equals(java.lang.annotation.Annotation[] otherAnn) |
private static int |
calcHash(java.lang.annotation.Annotation[] annotations) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
AnnotationBundleKey |
immutableKey()
Method called to create a safe immutable copy of the key; used when
adding entry with this key -- lookups are ok without calling the method.
|
java.lang.String |
toString() |
private static final java.lang.annotation.Annotation[] NO_ANNOTATIONS
private final java.lang.annotation.Annotation[] _annotations
private final java.lang.Class<?> _type
private final boolean _annotationsCopied
private final int _hashCode
public AnnotationBundleKey(java.lang.annotation.Annotation[] annotations, java.lang.Class<?> type)
private AnnotationBundleKey(java.lang.annotation.Annotation[] annotations, java.lang.Class<?> type, int hashCode)
private static final int calcHash(java.lang.annotation.Annotation[] annotations)
public AnnotationBundleKey immutableKey()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
private final boolean _equals(java.lang.annotation.Annotation[] otherAnn)