public class Annotations extends Object implements Serializable, Iterable<Annotation>
| Modifier and Type | Field and Description |
|---|---|
protected LinkedHashMap<Class<? extends Annotation>,Annotation> |
_annotations |
| Constructor and Description |
|---|
Annotations() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Annotation override)
Method for adding specified annotation, overriding existing value
for the annotation type.
|
void |
addAll(Annotations overrides)
Method for adding all annotations from specified set, as overrides
to annotations this set has
|
void |
addAsDefault(Annotation defValue)
Method for adding specified annotation if and only if no value
exists for the annotation type.
|
Annotation[] |
asArray() |
List<Annotation> |
asList() |
<A extends Annotation> |
get(Class<A> cls) |
Iterator<Annotation> |
iterator() |
int |
size() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected LinkedHashMap<Class<? extends Annotation>,Annotation> _annotations
public void add(Annotation override)
public void addAll(Annotations overrides)
public void addAsDefault(Annotation defValue)
public Iterator<Annotation> iterator()
iterator in interface Iterable<Annotation>public int size()
public <A extends Annotation> A get(Class<A> cls)
public Annotation[] asArray()
public List<Annotation> asList()
Copyright © 2025 fasterxml.com. All rights reserved.