MCPcopy Create free account
hub / github.com/GateNLP/gate-core / createImmutableAnnotationSet

Method createImmutableAnnotationSet

src/main/java/gate/Factory.java:535–538  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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>

Calls

no outgoing calls

Tested by

no test coverage detected