- All Implemented Interfaces:
- CoreAnnotation<java.lang.Integer>, TypesafeMap.Key<java.lang.Integer>
- Enclosing class:
- CoreAnnotations
public static class CoreAnnotations.CharacterOffsetEndAnnotation
extends java.lang.Object
implements CoreAnnotation<java.lang.Integer>
The CoreMap key identifying the offset of the last character after the end
of an annotation. The character with index 0 is the first character in the
document.
Note that these are currently measured in terms of UTF-16 char offsets, not codepoints,
so that when non-BMP Unicode characters are present, such a character will add 2 to
the position. On the other hand, these values will work with String#substring() and
you can then calculate the number of codepoints in a substring.
This key should be set for any annotation that represents a span of text.