@Override public boolean equals(Object other) { return this == other || other instanceof AnnotationValue<?, ?> && propertyDelegate.equals(value, ((AnnotationValue<?, ?>) other).resolve()); }
/** * {@inheritDoc} */ public boolean represents(Object value) { return propertyDelegate.equals(this.value, value); }
@Override public boolean equals(Object other) { if (this == other) { return true; } else if (!(other instanceof AnnotationValue.Loaded<?>)) { return false; } AnnotationValue.Loaded<?> annotationValue = (AnnotationValue.Loaded<?>) other; return annotationValue.getState().isResolved() && propertyDelegate.equals(value, annotationValue.resolve()); }