public class ListAnnotationContainer extends IteratingAnnotationContainer
Modifier and Type | Class and Description |
---|---|
private class |
ListAnnotationContainer.AnnotationIterator |
Modifier and Type | Field and Description |
---|---|
private List<Annotation> |
annotations |
Constructor and Description |
---|
ListAnnotationContainer() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
annotate(Annotation a)
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 List<Annotation> annotations
void annotateAll(Collection<Annotation> annotations)
AnnotationContainer
annotateAll
in class AnnotationContainer
annotations
- the annotations to add.void annotate(Annotation a)
AnnotationContainer
annotate
in class AnnotationContainer
a
- 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.