Top Description Methods
com.fasterxml.jackson.databind.util

public Interface Annotations

Known Direct Implementers
com.fasterxml.jackson.databind.introspect.AnnotationCollector.NoAnnotations, com.fasterxml.jackson.databind.introspect.AnnotationCollector.OneAnnotation, com.fasterxml.jackson.databind.introspect.AnnotationCollector.TwoAnnotations, com.fasterxml.jackson.databind.introspect.AnnotationMap
Imports
java.lang.annotation.Annotation

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 com.fasterxml.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<?> cls)

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

public int
size()

Returns number of annotation entries in this collection.

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<?> cls)
Since
2.9
hasOneOfback to summary
public boolean hasOneOf(Class<? extends Annotation>[] annoClasses)
Since
2.9
sizeback to summary
public int size()

Returns number of annotation entries in this collection.