Class Segment.TextCharSequenceBase
java.lang.Object
com.vladsch.flexmark.util.sequence.builder.tree.Segment.TextCharSequenceBase
- All Implemented Interfaces:
CharSequence
- Direct Known Subclasses:
Segment.TextAsciiCharSequence, Segment.TextCharSequence
- Enclosing class:
Segment
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final byte[]protected final intprotected final int -
Constructor Summary
ConstructorsConstructorDescriptionTextCharSequenceBase(byte[] bytes, int byteOffset, int startOffset, int length) -
Method Summary
Modifier and TypeMethodDescriptionabstract charcharAt(int index) (package private) abstract CharSequencecreate(int startOffset, int length) intlength()subSequence(int startIndex, int endIndex) @NotNull StringtoString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CharSequence
chars, codePoints, getChars, isEmpty
-
Field Details
-
bytes
protected final byte[] bytes -
byteOffset
protected final int byteOffset -
startOffset
protected final int startOffset -
length
protected final int length
-
-
Constructor Details
-
TextCharSequenceBase
public TextCharSequenceBase(byte[] bytes, int byteOffset, int startOffset, int length)
-
-
Method Details
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public abstract char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
create
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-