< prev index next >
src/java.compiler/share/classes/javax/lang/model/element/AnnotationMirror.java
Print this page
*** 69,74 ****
--- 69,95 ----
*
* @return the values of this annotation's elements,
* or an empty map if there are none
*/
Map<? extends ExecutableElement, ? extends AnnotationValue> getElementValues();
+
+ /**
+ * Returns {@code true} if the other object is also an {@code
+ * AnnotationMirror} and its {@linkplain getAnnotationType
+ * annotation type} and {@linkplain getElementValues element
+ * values} are equal to this {@code AnnotationMirror}.
+ *
+ * @return {@code true} if the argument is an equal {@code
+ * AnnotationMirror}; {@code false} otherwise.
+ */
+ @Override
+ boolean equals(Object o);
+
+ /**
+ * Returns the XOR of the hash codes of this {@code
+ * AnnotationMirror}'s {@linkplain getAnnotationType annotation
+ * type} and {@linkplain getElementValues element values}.
+ * @return the XOR of the annotation type and element values
+ */
+ @Override
+ int hashCode();
}
< prev index next >