public class AnnotationType2AnnotationContainer extends IteratingAnnotationContainer
Modifier and Type | Class and Description |
---|---|
private class |
AnnotationType2AnnotationContainer.NonRecursiveIterator |
Modifier and Type | Field and Description |
---|---|
private org.apache.commons.collections.map.MultiValueMap |
annotationType2Annotation |
Constructor and Description |
---|
AnnotationType2AnnotationContainer() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
annotate(Annotation annotation)
Adds an annotation to this container.
|
(package private) void |
annotateAll(Collection<Annotation> annotations)
Adds all annotations of the given collection to this container.
|
(package private) Collection<Annotation> |
annotations()
Returns a mutable collection of annotations.
|
boolean |
equals(Object o) |
int |
hashCode() |
(package private) Iterator<Annotation> |
iterator(IdentityHashMap<SpanNode,SpanNode> nodes) |
iterator, iteratorRecursive
private final org.apache.commons.collections.map.MultiValueMap annotationType2Annotation
void annotateAll(Collection<Annotation> annotations)
AnnotationContainer
annotateAll
in class AnnotationContainer
annotations
- the annotations to add.void annotate(Annotation annotation)
AnnotationContainer
annotate
in class AnnotationContainer
annotation
- the annotation to add.Collection<Annotation> annotations()
AnnotationContainer
annotations
in class AnnotationContainer
Iterator<Annotation> iterator(IdentityHashMap<SpanNode,SpanNode> nodes)
iterator
in class IteratingAnnotationContainer
Copyright © 2017. All rights reserved.