public Iterable annotations() { if (_annotations == null) { return Collections.emptyList(); } else { return _annotations.annotations(); } }
public final void addIfNotPresent(Annotation annotation) { _annotations.addIfNotPresent(annotation); }
public final void addOrOverride(Annotation annotation) { _annotations.add(annotation); }
/** * Fluent factory method that will construct a new instance that uses annotations from specified * {@link Annotated} as fallback annotations */ public final Annotated withFallBackAnnotationsFrom(Annotated annotated) { return withAnnotations(AnnotationMap.merge(getAllAnnotations(), annotated.getAllAnnotations())); }