@Internal public class SinglentonTextPiece extends TextPiece
_buf, EndComparator, StartComparator
Constructor and Description |
---|
SinglentonTextPiece(SinglentonTextPiece other) |
SinglentonTextPiece(java.lang.StringBuilder buffer) |
Modifier and Type | Method and Description |
---|---|
int |
bytesLength()
Returns the length, in bytes
|
int |
characterLength()
Returns the length, in characters
|
SinglentonTextPiece |
copy() |
int |
getCP()
Returns the character position we start at.
|
int |
getEnd() |
int |
getStart() |
java.lang.String |
toString() |
adjustForDelete, equals, getPieceDescriptor, getRawBytes, getStringBuffer, getStringBuilder, hashCode, isUnicode, substring
clone, compareTo, limitsAreEqual, setEnd, setStart
public SinglentonTextPiece(SinglentonTextPiece other)
public SinglentonTextPiece(java.lang.StringBuilder buffer)
public int bytesLength()
TextPiece
bytesLength
in class TextPiece
public int characterLength()
TextPiece
characterLength
in class TextPiece
public int getCP()
TextPiece
public int getEnd()
getEnd
in class PropertyNode<TextPiece>
public int getStart()
getStart
in class PropertyNode<TextPiece>
public SinglentonTextPiece copy()
copy
in interface Duplicatable
copy
in class TextPiece
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.