public class Annotations extends Object implements Serializable, Iterable<Annotation>
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<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.
|
<A extends Annotation> |
get(Class<A> cls) |
Iterator<Annotation> |
iterator() |
int |
size() |
String |
toString() |
protected HashMap<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)
Copyright © 2014 fasterxml.com. All Rights Reserved.