public final class AnnotationValues
extends java.lang.Object
AnnotationValue
instances.Modifier and Type | Field and Description |
---|---|
private static com.google.common.base.Equivalence<javax.lang.model.element.AnnotationValue> |
ANNOTATION_VALUE_EQUIVALENCE |
Modifier | Constructor and Description |
---|---|
private |
AnnotationValues() |
Modifier and Type | Method and 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. |
private static final com.google.common.base.Equivalence<javax.lang.model.element.AnnotationValue> ANNOTATION_VALUE_EQUIVALENCE
public static com.google.common.base.Equivalence<javax.lang.model.element.AnnotationValue> equivalence()
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.AnnotationMirrors.equivalence()