Top Description Methods
tools.jackson.databind.util

public Interface Annotations

Known Direct Implementers
tools.jackson.databind.introspect.AnnotationCollector.NoAnnotations, tools.jackson.databind.introspect.AnnotationCollector.OneAnnotation, tools.jackson.databind.introspect.AnnotationCollector.TwoAnnotations, tools.jackson.databind.introspect.AnnotationMap
Imports
java.lang.annotation.Annotation, java.util.stream.Stream

Interface that defines interface for accessing contents of a collection of annotations. This is needed when introspecting annotation-based features from different kinds of things, not just objects that Java Reflection interface exposes.

Standard mutable implementation is tools.jackson.databind.introspect.AnnotationMap

Method Summary

Modifier and TypeMethod and Description
public <A extends Annotation> A
get(Class<A> cls)

Main access method used to find value for given annotation.

public boolean
has(Class<? extends Annotation> cls)

public boolean
hasOneOf(Class<? extends Annotation>[] annoClasses)

public int
size()

Returns number of annotation entries in this collection.

public Stream<Annotation>
values()

Access method that returns a stream of all annotations contained.

Method Detail

getback to summary
public <A extends Annotation> A get(Class<A> cls)

Main access method used to find value for given annotation.

hasback to summary
public boolean has(Class<? extends Annotation> cls)
hasOneOfback to summary
public boolean hasOneOf(Class<? extends Annotation>[] annoClasses)
sizeback to summary
public int size()

Returns number of annotation entries in this collection.

valuesback to summary
public Stream<Annotation> values()

Access method that returns a stream of all annotations contained.

Since
3.0