Utility method to create an immutable annotation set. If the provided collection of annotations is null , the newly created set will be empty. @param document the document this set belongs to. @param annotations the set of annotations that should be contained in the returned {@
(Document document,
Collection<Annotation> annotations)
| 533 | * attempts to modify it. |
| 534 | */ |
| 535 | public static AnnotationSet createImmutableAnnotationSet(Document document, |
| 536 | Collection<Annotation> annotations) { |
| 537 | return new ImmutableAnnotationSetImpl(document, annotations); |
| 538 | } |
| 539 | |
| 540 | /** |
| 541 | * <p> |
no outgoing calls
no test coverage detected