Class AnnotationValues


  • public final class AnnotationValues
    extends java.lang.Object
    A utility class for working with AnnotationValue instances.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static com.google.common.base.Equivalence<javax.lang.model.element.AnnotationValue> ANNOTATION_VALUE_EQUIVALENCE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private AnnotationValues()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.google.common.base.Equivalence<javax.lang.model.element.AnnotationValue> equivalence()
      Returns an Equivalence for AnnotationValue as annotation values may contain AnnotationMirror instances some of whose implementations delegate equality tests to Object.equals(java.lang.Object) whereas the documentation explicitly states that instance/reference equality is not the proper test.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ANNOTATION_VALUE_EQUIVALENCE

        private static final com.google.common.base.Equivalence<javax.lang.model.element.AnnotationValue> ANNOTATION_VALUE_EQUIVALENCE
    • Constructor Detail

      • AnnotationValues

        private AnnotationValues()
    • Method Detail

      • equivalence

        public static com.google.common.base.Equivalence<javax.lang.model.element.AnnotationValue> equivalence()
        Returns an Equivalence for AnnotationValue as annotation values may contain AnnotationMirror instances some of whose implementations delegate equality tests to Object.equals(java.lang.Object) whereas the documentation explicitly states that instance/reference equality is not the proper test.
        See Also:
        AnnotationMirrors.equivalence()