public class Annotations extends Object
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) |
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 int size()
public <A extends Annotation> A get(Class<A> cls)
Copyright © 2012 fasterxml.com. All Rights Reserved.