Package com.google.auto.common
Class AnnotationValues
java.lang.Object
com.google.auto.common.AnnotationValues
A utility class for working with
AnnotationValue
instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.google.common.base.Equivalence<AnnotationValue>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.base.Equivalence<AnnotationValue>
Returns anEquivalence
forAnnotationValue
as annotation values may containAnnotationMirror
instances some of whose implementations delegate equality tests toObject.equals(java.lang.Object)
whereas the documentation explicitly states that instance/reference equality is not the proper test.
-
Field Details
-
ANNOTATION_VALUE_EQUIVALENCE
private static final com.google.common.base.Equivalence<AnnotationValue> ANNOTATION_VALUE_EQUIVALENCE
-
-
Constructor Details
-
AnnotationValues
private AnnotationValues()
-
-
Method Details
-
equivalence
Returns anEquivalence
forAnnotationValue
as annotation values may containAnnotationMirror
instances some of whose implementations delegate equality tests toObject.equals(java.lang.Object)
whereas the documentation explicitly states that instance/reference equality is not the proper test.- See Also:
-