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

Method lengthLong

src/main/java/gate/Utils.java:91–94  ·  view source on GitHub ↗

Return the length of the document content covered by an Annotation as a long. @param ann the annotation for which to determine the length @return the length of the document content covered by this annotation.

(SimpleAnnotation ann)

Source from the content-addressed store, hash-verified

89 * @return the length of the document content covered by this annotation.
90 */
91 public static long lengthLong(SimpleAnnotation ann) {
92 return ann.getEndNode().getOffset() -
93 ann.getStartNode().getOffset();
94 }
95
96 /**
97 * Return the length of the document as an

Callers 1

lengthMethod · 0.95

Calls 5

getOffsetMethod · 0.65
getEndNodeMethod · 0.65
getStartNodeMethod · 0.65
sizeMethod · 0.65
getContentMethod · 0.65

Tested by

no test coverage detected