< prev index next >

src/java.compiler/share/classes/javax/lang/model/element/AnnotationValue.java

Print this page

        

@@ -59,10 +59,29 @@
      * @return a string representation of this value
      */
     String toString();
 
     /**
+     * Returns {@code true} if the other object is also an {@code
+     * AnnotationValue} and its {@linkplain getValue
+     * value} is equal to this {@code AnnotationValue}'s value.
+     *
+     * @return {@code true} if the argument is an equal {@code
+     * AnnotationValue}; {@code false} otherwise.
+     */ 
+    @Override
+    boolean equals(Object o);
+
+    /**
+     * Returns the hash code of this {@code
+     * AnnotationValues}'s {@linkplain getValue value}.
+     * @reurn the hashCode of the {@code AnnotationValues}'s value
+     */
+    @Override
+    int hashCode();
+
+    /**
      * Applies a visitor to this value.
      *
      * @param <R> the return type of the visitor's methods
      * @param <P> the type of the additional parameter to the visitor's methods
      * @param v   the visitor operating on this value
< prev index next >