| Modifier and Type | Field and Description |
|---|---|
| private final Annotation[] | |
| private final boolean | |
| private final int | |
| private final 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 final Annotation[] |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private final boolean | |
| private static final int | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public 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. |
| public String |
| _annotations | back to summary |
|---|---|
| private final Annotation[] _annotations | |
| _annotationsCopied | back to summary |
|---|---|
| private final boolean _annotationsCopied | |
| _hashCode | back to summary |
|---|---|
| private final int _hashCode | |
| _type | back to summary |
|---|---|
| private final 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). | |
| NO_ANNOTATIONS | back to summary |
|---|---|
| private static final Annotation[] NO_ANNOTATIONS | |
| AnnotationBundleKey | back to summary |
|---|---|
| public AnnotationBundleKey(Annotation[] annotations, Class<?> type) | |
| AnnotationBundleKey | back to summary |
|---|---|
| private AnnotationBundleKey(Annotation[] annotations, Class<?> type, int hashCode) | |
| _equals | back to summary |
|---|---|
| private final boolean _equals(Annotation[] otherAnn) | |
| calcHash | back to summary |
|---|---|
| private static final int calcHash(Annotation[] annotations) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| immutableKey | back to summary |
|---|---|
| public 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. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |