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

Method plus

src/main/java/gate/Utils.java:1343–1345  ·  view source on GitHub ↗

Return the given set with the given annotations added. This returns a new immutable annotation set, which contains all the annotations from origSet plus the given annotations to add. The addition is not based on equality but on the id of the annotations: any new annotation is added if its annotatio

(AnnotationSet origSet, Annotation... toAdd)

Source from the content-addressed store, hash-verified

1341 * @return A new immutable annotation set with the given annotations added
1342 */
1343 public static AnnotationSet plus(AnnotationSet origSet, Annotation... toAdd) {
1344 return plus(origSet,Arrays.asList(toAdd));
1345 }
1346
1347 /**
1348 * Return the given set with the given annotations added.

Callers 1

Calls 5

addMethod · 0.65
getIdMethod · 0.65
getDocumentMethod · 0.65
addAllMethod · 0.45
containsMethod · 0.45

Tested by 1