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 int
protected final byte[]
protected final int
protected final int
-
Constructor Summary
ConstructorsConstructorDescriptionTextCharSequenceBase
(byte[] bytes, int byteOffset, int startOffset, int length) -
Method Summary
Modifier and TypeMethodDescriptionabstract char
charAt
(int index) (package private) abstract CharSequence
create
(int startOffset, int length) int
length()
subSequence
(int startIndex, int endIndex) @NotNull String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, 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:
length
in interfaceCharSequence
-
charAt
public abstract char charAt(int index) - Specified by:
charAt
in interfaceCharSequence
-
create
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-