Interface ISegmentBuilder<S extends ISegmentBuilder<S>>
- All Known Subinterfaces:
IBasedSegmentBuilder<S>
- All Known Implementing Classes:
BasedSegmentBuilder, PlainSegmentBuilder, SegmentBuilderBase
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final ISegmentBuilder.Optionsstatic final ISegmentBuilder.Options -
Method Summary
Modifier and TypeMethodDescriptionappend(int startOffset, int endOffset) append(CharSequence text) appendAnchor(int offset) @Nullable RangeintintReturn iterator over segmentsintgetSpan()intgetText()intintintintintintbooleanbooleanbooleanisEmpty()booleanbooleaniterator()Return iterator over segment parts Range - BASE CharSequence - TEXTintlength()intintsize()@NotNull StringtoString(@NotNull CharSequence chars) @NotNull StringtoStringWithRanges(@NotNull CharSequence chars) @NotNull StringtoStringWithRangesVisibleWhitespace(@NotNull CharSequence chars) Methods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
O_INCLUDE_ANCHORS
-
O_TRACK_FIRST256
-
F_INCLUDE_ANCHORS
static final int F_INCLUDE_ANCHORS -
F_TRACK_FIRST256
static final int F_TRACK_FIRST256 -
F_DEFAULT
static final int F_DEFAULT
-
-
Method Details
-
getOptions
int getOptions() -
isIncludeAnchors
boolean isIncludeAnchors() -
isEmpty
boolean isEmpty() -
isBaseSubSequenceRange
boolean isBaseSubSequenceRange() -
getBaseSubSequenceRange
-
haveOffsets
boolean haveOffsets() -
getSpan
int getSpan() -
getStartOffset
int getStartOffset() -
getEndOffset
int getEndOffset() -
size
int size() -
getText
CharSequence getText() -
noAnchorsSize
int noAnchorsSize() -
length
int length() -
isTrackTextFirst256
boolean isTrackTextFirst256() -
getTextLength
int getTextLength() -
getTextSegments
int getTextSegments() -
getTextSpaceLength
int getTextSpaceLength() -
getTextSpaceSegments
int getTextSpaceSegments() -
getTextFirst256Length
int getTextFirst256Length() -
getTextFirst256Segments
int getTextFirst256Segments() -
iterator
-
getSegments
-
append
-
append
-
appendAnchor
-
append
-
toStringWithRangesVisibleWhitespace
-
toStringWithRanges
-
toString
-