public abstract class IRichSequenceBase<T extends IRichSequence<T>> extends Object implements IRichSequence<T>
ANY_EOL, ANY_EOL_SET, BACKSLASH_SET, DECIMAL_DIGITS, EMPTY_INDICES, ENC_NUL, EOL, EOL_CHAR, EOL_CHAR1, EOL_CHAR2, EOL_CHARS, EOL_SET, HASH_SET, HEXADECIMAL_DIGITS, LINE_SEP, LS, LSEP, NBSP, NBSP_CHARS, NUL, OCTAL_DIGITS, SPACE, SPACE_EOL, SPACE_EOL_SET, SPACE_SET, SPACE_TAB, SPACE_TAB_EOL_SET, SPACE_TAB_NBSP_SET, SPACE_TAB_SET, SPC, SPLIT_INCLUDE_DELIM_PARTS, SPLIT_INCLUDE_DELIMS, SPLIT_SKIP_EMPTY, SPLIT_TRIM_PARTS, SPLIT_TRIM_SKIP_EMPTY, TAB_SET, US, US_CHARS, US_SET, visibleSpacesMap, WHITESPACE, WHITESPACE_CHARS, WHITESPACE_NBSP, WHITESPACE_NBSP_CHARS, WHITESPACE_NBSP_SET, WHITESPACE_NO_EOL_CHARS, WHITESPACE_SET| Constructor and Description |
|---|
IRichSequenceBase(int hash)
Constructor with pre-computed hash if available, 0 for lazy computation if length() not 0
|
| Modifier and Type | Method and Description |
|---|---|
T |
append(CharSequence... sequences)
Concatenate this sequence and list of others, returning sequence of result
|
T |
append(Iterable<? extends CharSequence> sequences) |
T |
appendEOL() |
T |
appendRangesTo(@NotNull StringBuilder out,
@Nullable CharMapper charMapper,
Iterable<? extends Range> ranges) |
T |
appendRangesTo(@NotNull StringBuilder out,
@Nullable CharMapper charMapper,
Range... ranges)
Append given ranges of this sequence to string builder
|
T |
appendRangesTo(@NotNull StringBuilder out,
Iterable<? extends Range> ranges) |
T |
appendRangesTo(@NotNull StringBuilder out,
Range... ranges) |
T |
appendSpace() |
T |
appendSpaces(int count) |
T |
appendTo(@NotNull StringBuilder out) |
T |
appendTo(@NotNull StringBuilder out,
@Nullable CharMapper charMapper) |
T |
appendTo(@NotNull StringBuilder out,
@Nullable CharMapper charMapper,
int startIndex) |
T |
appendTo(@NotNull StringBuilder out,
@Nullable CharMapper charMapper,
int startIndex,
int endIndex)
Append helpers
|
T |
appendTo(@NotNull StringBuilder out,
int startIndex) |
T |
appendTo(@NotNull StringBuilder out,
int startIndex,
int endIndex) |
@NotNull List<Range> |
blankLinesRemovedRanges() |
@NotNull List<Range> |
blankLinesRemovedRanges(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
int fromIndex,
int endIndex) |
@NotNull List<Range> |
blankLinesRemovedRanges(int fromIndex) |
@NotNull List<Range> |
blankLinesRemovedRanges(int fromIndex,
int endIndex) |
int |
columnAtIndex(int index) |
int |
compareTo(@NotNull CharSequence o) |
int |
countLeading(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
Count leading/trailing characters of this sequence
|
int |
countLeading(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex) |
int |
countLeading(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex,
int endIndex) |
int |
countLeadingColumns(int startColumn,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
Count column of indent given by chars in the set in this sequence, expanding tabs to 4th column
|
int |
countLeadingNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
int |
countLeadingNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex) |
int |
countLeadingNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex) |
int |
countLeadingNotSpace() |
int |
countLeadingNotSpace(int startIndex) |
int |
countLeadingNotSpace(int startIndex,
int endIndex) |
int |
countLeadingNotSpaceTab() |
int |
countLeadingNotSpaceTab(int startIndex) |
int |
countLeadingNotSpaceTab(int startIndex,
int endIndex) |
int |
countLeadingNotWhitespace() |
int |
countLeadingNotWhitespace(int startIndex) |
int |
countLeadingNotWhitespace(int startIndex,
int endIndex) |
int |
countLeadingSpace() |
int |
countLeadingSpace(int startIndex) |
int |
countLeadingSpace(int startIndex,
int endIndex) |
int |
countLeadingSpaceTab() |
int |
countLeadingSpaceTab(int startIndex) |
int |
countLeadingSpaceTab(int startIndex,
int endIndex) |
int |
countLeadingWhitespace() |
int |
countLeadingWhitespace(int startIndex) |
int |
countLeadingWhitespace(int startIndex,
int endIndex) |
int |
countOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
int |
countOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex) |
int |
countOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex,
int endIndex) |
int |
countOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
int |
countOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex) |
int |
countOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex) |
int |
countOfNotSpaceTab() |
int |
countOfNotWhitespace() |
int |
countOfSpaceTab() |
int |
countOfWhitespace() |
int |
countTrailing(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
int |
countTrailing(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex) |
int |
countTrailing(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int fromIndex) |
int |
countTrailingNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
int |
countTrailingNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex) |
int |
countTrailingNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex) |
int |
countTrailingNotSpace() |
int |
countTrailingNotSpace(int fromIndex) |
int |
countTrailingNotSpace(int startIndex,
int fromIndex) |
int |
countTrailingNotSpaceTab() |
int |
countTrailingNotSpaceTab(int fromIndex) |
int |
countTrailingNotSpaceTab(int startIndex,
int fromIndex) |
int |
countTrailingNotWhitespace() |
int |
countTrailingNotWhitespace(int fromIndex) |
int |
countTrailingNotWhitespace(int startIndex,
int fromIndex) |
int |
countTrailingSpace() |
int |
countTrailingSpace(int fromIndex) |
int |
countTrailingSpace(int startIndex,
int fromIndex) |
int |
countTrailingSpaceTab() |
int |
countTrailingSpaceTab(int fromIndex) |
int |
countTrailingSpaceTab(int startIndex,
int fromIndex) |
int |
countTrailingWhitespace() |
int |
countTrailingWhitespace(int fromIndex) |
int |
countTrailingWhitespace(int startIndex,
int fromIndex) |
T |
delete(int startIndex,
int endIndex)
Delete range in sequence
|
char |
endCharAt(int index)
Convenience method to get characters offset from end of sequence.
|
int |
endOfDelimitedBy(@NotNull CharSequence s,
int index)
Find start/end region in this sequence delimited by any characters in argument or the CharSequence
|
int |
endOfDelimitedByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index) |
int |
endOfDelimitedByAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index) |
int |
endOfLine(int index)
Get the offset of the end of line at given index, end of line delimited by \n
|
int |
endOfLineAnyEOL(int index)
Get the offset of the end of line at given index, end of line delimited by \n or any of \n \r \r\n for Any methods.
|
T |
endSequence(int startIndex)
Convenience method to get characters offset from endIndex of sequence.
|
T |
endSequence(int startIndex,
int endIndex)
Convenience method to get characters offset from endIndex of sequence.
|
boolean |
endsWith(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
boolean |
endsWith(@NotNull CharSequence suffix)
test if this sequence ends with given characters
|
boolean |
endsWith(@NotNull CharSequence suffix,
boolean ignoreCase)
test if this sequence ends with given characters
|
boolean |
endsWithAnyEOL() |
boolean |
endsWithEOL() |
boolean |
endsWithIgnoreCase(@NotNull CharSequence suffix)
test if this sequence ends with given characters, ignoring case differences
|
boolean |
endsWithSpace() |
boolean |
endsWithSpaceTab() |
boolean |
endsWithWhitespace() |
int |
eolEndLength()
Get the length of EOL character at the end of this sequence, if present.
|
int |
eolEndLength(int eolEnd)
Get the length of EOL character at the given index of this sequence, if present.
|
@NotNull Range |
eolEndRange(int eolEnd)
Return Range of eol at given index
|
int |
eolStartLength(int eolStart)
Get the length of EOL character at the given index of this sequence, if present.
|
@NotNull Range |
eolStartRange(int eolStart)
Return Range of eol at given index
|
boolean |
equals(Object o)
Equality comparison based on character content of this sequence, with quick fail
resorting to content comparison only if length and hashCodes are equal
|
boolean |
equals(@Nullable Object other,
boolean ignoreCase)
Test the sequence for a match to another CharSequence
|
boolean |
equalsIgnoreCase(@Nullable Object other)
Test the sequence for a match to another CharSequence, ignoring case differences
|
T |
extractRanges(Iterable<Range> ranges) |
T |
extractRanges(Range... ranges)
Build a sequence of ranges in this sequence
|
char |
firstChar() |
int |
hashCode()
String hash code computation
|
T |
ifNull(T other)
If this sequence is the nullSequence() instance then returns other,
otherwise returns this sequence.
|
T |
ifNullEmptyAfter(T other)
If this sequence is the nullSequence() instance then returns an empty subSequence from the end of other,
otherwise returns this sequence.
|
T |
ifNullEmptyBefore(T other)
If this sequence is the nullSequence() instance then returns an empty subSequence from the start of other,
otherwise returns this sequence.
|
int |
indexOf(char c) |
int |
indexOf(char c,
int fromIndex) |
int |
indexOf(char c,
int fromIndex,
int endIndex) |
int |
indexOf(@NotNull CharSequence s)
All index methods return the position or -1 if not found of the given character, characters or string.
|
int |
indexOf(@NotNull CharSequence s,
int fromIndex) |
int |
indexOf(@NotNull CharSequence s,
int fromIndex,
int endIndex) |
@NotNull int[] |
indexOfAll(@NotNull CharSequence s)
Get indices of all occurrences of a sequence
|
int |
indexOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s) |
int |
indexOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index) |
int |
indexOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex,
int endIndex) |
int |
indexOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s) |
int |
indexOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex) |
int |
indexOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex,
int endIndex) |
int |
indexOfNot(char c) |
int |
indexOfNot(char c,
int fromIndex) |
int |
indexOfNot(char c,
int fromIndex,
int endIndex) |
T |
insert(int index,
@NotNull CharSequence chars)
Insert char sequence at given index
|
boolean |
isBlank() |
boolean |
isCharAt(int index,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate predicate)
Safe, if index out of range returns '\0'
|
boolean |
isEmpty() |
boolean |
isIn(@NotNull Collection<? extends CharSequence> texts) |
boolean |
isIn(@NotNull String[] texts) |
boolean |
isNotBlank() |
boolean |
isNotEmpty() |
boolean |
isNotNull() |
boolean |
isNull() |
char |
lastChar() |
int |
lastIndexOf(char c) |
int |
lastIndexOf(char c,
int fromIndex) |
int |
lastIndexOf(char c,
int startIndex,
int fromIndex) |
int |
lastIndexOf(@NotNull CharSequence s) |
int |
lastIndexOf(@NotNull CharSequence s,
int fromIndex) |
int |
lastIndexOf(@NotNull CharSequence s,
int startIndex,
int fromIndex) |
int |
lastIndexOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s) |
int |
lastIndexOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex) |
int |
lastIndexOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int startIndex,
int fromIndex) |
int |
lastIndexOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s) |
int |
lastIndexOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex) |
int |
lastIndexOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int startIndex,
int fromIndex) |
int |
lastIndexOfNot(char c) |
int |
lastIndexOfNot(char c,
int fromIndex) |
int |
lastIndexOfNot(char c,
int startIndex,
int fromIndex) |
@NotNull Range |
leadingBlankLinesRange() |
@NotNull Range |
leadingBlankLinesRange(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
int fromIndex,
int endIndex)
Get Range of leading blank lines at given index offsets in sequence
|
@NotNull Range |
leadingBlankLinesRange(int startIndex) |
@NotNull Range |
leadingBlankLinesRange(int fromIndex,
int endIndex) |
T |
lineAt(int index)
Get the line characters at given index, line delimited by \n
|
T |
lineAtAnyEOL(int index)
Get the line characters at given index, line delimited by \n, \r or \r\n
|
@NotNull com.vladsch.flexmark.util.misc.Pair<Integer,Integer> |
lineColumnAtIndex(int index)
Get the line and column information from index into sequence
|
@NotNull Range |
lineRangeAt(int index)
Get the line characters at given index, line delimited by \n
|
@NotNull Range |
lineRangeAtAnyEOL(int index)
Get the line characters at given index, line delimited by \n, \r or \r\n
|
boolean |
matchChars(@NotNull CharSequence chars)
Test the sequence portion for a match to another CharSequence
|
boolean |
matchChars(@NotNull CharSequence chars,
boolean ignoreCase) |
boolean |
matchChars(@NotNull CharSequence chars,
int startIndex) |
boolean |
matchChars(@NotNull CharSequence chars,
int startIndex,
boolean ignoreCase)
Test the sequence portion for a match to another CharSequence
|
boolean |
matchCharsIgnoreCase(@NotNull CharSequence chars) |
boolean |
matchCharsIgnoreCase(@NotNull CharSequence chars,
int startIndex) |
boolean |
matchCharsReversed(@NotNull CharSequence chars,
int endIndex) |
boolean |
matchCharsReversed(@NotNull CharSequence chars,
int endIndex,
boolean ignoreCase)
Test the sequence portion for a match to another CharSequence, reverse order
|
boolean |
matchCharsReversedIgnoreCase(@NotNull CharSequence chars,
int endIndex) |
int |
matchedCharCount(@NotNull CharSequence chars,
int startIndex) |
int |
matchedCharCount(@NotNull CharSequence chars,
int startIndex,
boolean ignoreCase) |
int |
matchedCharCount(@NotNull CharSequence chars,
int startIndex,
int endIndex) |
int |
matchedCharCount(@NotNull CharSequence chars,
int startIndex,
int endIndex,
boolean ignoreCase) |
int |
matchedCharCount(@NotNull CharSequence chars,
int startIndex,
int endIndex,
boolean fullMatchOnly,
boolean ignoreCase)
Test the sequence portion for a match to another CharSequence
|
int |
matchedCharCountIgnoreCase(@NotNull CharSequence chars,
int startIndex) |
int |
matchedCharCountIgnoreCase(@NotNull CharSequence chars,
int startIndex,
int endIndex) |
int |
matchedCharCountReversed(@NotNull CharSequence chars,
int fromIndex) |
int |
matchedCharCountReversed(@NotNull CharSequence chars,
int fromIndex,
boolean ignoreCase) |
int |
matchedCharCountReversed(@NotNull CharSequence chars,
int startIndex,
int fromIndex) |
int |
matchedCharCountReversed(@NotNull CharSequence chars,
int startIndex,
int fromIndex,
boolean ignoreCase)
Test the sequence portion for a match to another CharSequence,
equivalent to taking this.subSequence(startIndex, fromIndex) and then count matching chars going from end of both sequences
|
int |
matchedCharCountReversedIgnoreCase(@NotNull CharSequence chars,
int fromIndex) |
int |
matchedCharCountReversedIgnoreCase(@NotNull CharSequence chars,
int startIndex,
int fromIndex) |
boolean |
matches(@NotNull CharSequence chars)
Test the sequence for a match to another CharSequence
|
boolean |
matches(@NotNull CharSequence chars,
boolean ignoreCase) |
boolean |
matchesIgnoreCase(@NotNull CharSequence chars) |
char |
midCharAt(int index)
Convenience method to get characters offset from start or end of sequence.
|
T |
midSequence(int startIndex)
Convenience method to get characters offset from start or end of sequence.
|
T |
midSequence(int startIndex,
int endIndex)
Convenience method to get characters offset from start or end of sequence.
|
@NotNull String |
normalizeEndWithEOL()
replace any \r\n and \r by \n, append terminating EOL if one is not present
|
@NotNull String |
normalizeEOL()
replace any \r\n and \r by \n
|
T |
nullIf(@NotNull BiPredicate<? super T,? super CharSequence> predicate,
CharSequence... matches)
If predicate returns true for this sequence and one of given sequences return nullSequence() otherwise returns this sequence.
|
T |
nullIf(boolean condition)
If condition is true return nullSequence() otherwise returns this sequence.
|
T |
nullIf(CharSequence... matches)
If this sequence matches one of given sequences return nullSequence() otherwise returns this sequence.
|
T |
nullIf(@NotNull Predicate<? super CharSequence> predicate,
CharSequence... matches)
If predicate returns true for one of given sequences return nullSequence() otherwise returns this sequence.
|
T |
nullIfBlank()
If this sequence is blank return nullSequence() otherwise returns this sequence.
|
T |
nullIfEmpty()
If this sequence is empty return nullSequence() otherwise returns this sequence.
|
T |
nullIfEndsWith(boolean ignoreCase,
CharSequence... matches) |
T |
nullIfEndsWith(CharSequence... matches) |
T |
nullIfEndsWithIgnoreCase(CharSequence... matches) |
T |
nullIfNot(@NotNull BiPredicate<? super T,? super CharSequence> predicate,
CharSequence... matches) |
T |
nullIfNot(CharSequence... matches) |
T |
nullIfNot(@NotNull Predicate<? super CharSequence> predicate,
CharSequence... matches) |
T |
nullIfNotEndsWith(boolean ignoreCase,
CharSequence... matches) |
T |
nullIfNotEndsWith(CharSequence... matches) |
T |
nullIfNotEndsWithIgnoreCase(CharSequence... matches) |
T |
nullIfNotStartsWith(boolean ignoreCase,
CharSequence... matches) |
T |
nullIfNotStartsWith(CharSequence... matches) |
T |
nullIfNotStartsWithIgnoreCase(CharSequence... matches) |
T |
nullIfStartsWith(boolean ignoreCase,
CharSequence... matches) |
T |
nullIfStartsWith(CharSequence... matches) |
T |
nullIfStartsWithIgnoreCase(CharSequence... matches) |
T |
padding(int length) |
T |
padding(int length,
char pad)
Get the chars needed for padding to length
|
T |
padEnd(int length) |
T |
padEnd(int length,
char pad) |
T |
padStart(int length) |
T |
padStart(int length,
char pad)
Pad this sequence to given length
|
T |
prefixOnceWith(@Nullable CharSequence prefix)
Prefix this sequence with a char sequence if not already starting with prefix
|
T |
prefixOnceWithEOL() |
T |
prefixOnceWithSpace() |
T |
prefixWith(@Nullable CharSequence prefix)
Prefix this sequence with a char sequence
|
T |
prefixWithEOL() |
T |
prefixWithSpace() |
T |
prefixWithSpaces(int count) |
T |
removePrefix(@NotNull CharSequence prefix)
Remove prefix if present
|
T |
removePrefix(@NotNull CharSequence prefix,
boolean ignoreCase)
Remove prefix if present
|
T |
removePrefixIgnoreCase(@NotNull CharSequence prefix)
Remove prefix if present, ignoring case differences
|
T |
removeProperPrefix(@NotNull CharSequence prefix)
Remove prefix if present but only if this sequence is longer than the suffix
|
T |
removeProperPrefix(@NotNull CharSequence prefix,
boolean ignoreCase)
Remove prefix if present but only if this sequence is longer than the suffix
|
T |
removeProperPrefixIgnoreCase(@NotNull CharSequence prefix)
Remove prefix if present but only if this sequence is longer than the suffix, ignoring case differences
|
T |
removeProperSuffix(@NotNull CharSequence suffix)
Remove suffix if present but only if this sequence is longer than the suffix
|
T |
removeProperSuffix(@NotNull CharSequence suffix,
boolean ignoreCase)
Remove suffix if present but only if this sequence is longer than the suffix
|
T |
removeProperSuffixIgnoreCase(@NotNull CharSequence suffix)
Remove suffix if present but only if this sequence is longer than the suffix, ignoring case differences
|
T |
removeSuffix(@NotNull CharSequence suffix)
Remove suffix if present
|
T |
removeSuffix(@NotNull CharSequence suffix,
boolean ignoreCase)
Remove suffix if present
|
T |
removeSuffixIgnoreCase(@NotNull CharSequence suffix)
Remove suffix if present, ignoring case differences
|
T |
replace(@NotNull CharSequence find,
@NotNull CharSequence replace)
Replace all occurrences of one sequence with another
|
T |
replace(int startIndex,
int endIndex,
@NotNull CharSequence replacement)
Replace part of the sequence with a char sequence
|
char |
safeCharAt(int index)
return char at index or '\0' if index <0 or >=length()
|
T |
safeSubSequence(int startIndex)
Get a portion of this sequence, if index < 0 use 0, if > length() use length
|
T |
safeSubSequence(int startIndex,
int endIndex)
Get a portion of this sequence, if index < 0 use 0, if > length() use length
|
T |
sequenceOf(@Nullable CharSequence charSequence)
Factory function
|
T |
sequenceOf(@Nullable CharSequence charSequence,
int startIndex)
Factory function
|
T[] |
split(@NotNull CharSequence delimiter) |
T[] |
split(@NotNull CharSequence delimiter,
boolean includeDelims,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars) |
T[] |
split(@NotNull CharSequence delimiter,
int limit,
boolean includeDelims,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars) |
T[] |
split(@NotNull CharSequence delimiter,
int limit,
int flags) |
T[] |
split(@NotNull CharSequence delimiter,
int limit,
int flags,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars) |
T[] |
splitEOL() |
T[] |
splitEOL(boolean includeDelims) |
@NotNull List<T> |
splitList(@NotNull CharSequence delimiter) |
@NotNull List<T> |
splitList(@NotNull CharSequence delimiter,
boolean includeDelims,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars) |
@NotNull List<T> |
splitList(@NotNull CharSequence delimiter,
int limit,
boolean includeDelims,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
Split helpers based on delimiter character sets contained in CharPredicate
|
@NotNull List<T> |
splitList(@NotNull CharSequence delimiter,
int limit,
int flags) |
@NotNull List<T> |
splitList(@NotNull CharSequence delimiter,
int limit,
int flags,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
Split helpers based on delimiter character sets contained in CharSequence
|
@NotNull List<T> |
splitListEOL() |
@NotNull List<T> |
splitListEOL(boolean includeDelims) |
@NotNull List<T> |
splitListEOL(boolean includeDelims,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars) |
int |
startOfDelimitedBy(@NotNull CharSequence s,
int index) |
int |
startOfDelimitedByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index) |
int |
startOfDelimitedByAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index) |
int |
startOfLine(int index)
Get the offset of the start of line at given index, start of line delimited by \n
|
int |
startOfLineAnyEOL(int index)
Get the offset of the start of line at given index, start of line delimited by \n or any of \n \r \r\n for Any methods.
|
boolean |
startsWith(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
boolean |
startsWith(@NotNull CharSequence prefix)
test if this sequence starts with given characters
|
boolean |
startsWith(@NotNull CharSequence prefix,
boolean ignoreCase)
test if this sequence starts with given characters
|
boolean |
startsWithAnyEOL() |
boolean |
startsWithEOL() |
boolean |
startsWithIgnoreCase(@NotNull CharSequence prefix)
test if this sequence starts with given characters, ignoring case differences
|
boolean |
startsWithSpace() |
boolean |
startsWithSpaceTab() |
boolean |
startsWithWhitespace() |
T |
subSequence(int startIndex)
Get a portion of this sequence starting from a given offset to endIndex of the sequence
|
T |
subSequence(@NotNull Range range)
Get a portion of this sequence selected by range
|
T |
subSequenceAfter(@NotNull Range range)
Get a portion of this sequence after one selected by range
|
T |
subSequenceBefore(@NotNull Range range)
Get a portion of this sequence before one selected by range
|
com.vladsch.flexmark.util.misc.Pair<T,T> |
subSequenceBeforeAfter(Range range)
Get a portions of this sequence before and after one selected by range
|
T |
suffixOnceWith(@Nullable CharSequence suffix)
Suffix this sequence with a char sequence if not already ending with suffix
|
T |
suffixOnceWithEOL() |
T |
suffixOnceWithSpace() |
T |
suffixWith(@Nullable CharSequence suffix)
Prefix this sequence with a char sequence
|
T |
suffixWithEOL() |
T |
suffixWithSpace() |
T |
suffixWithSpaces(int count) |
T |
toLowerCase()
Map characters of this sequence to: Uppercase, Lowercase or use custom mapping
|
T |
toNbSp()
Map spaces to non break spaces
|
T |
toSpc()
Map non break spaces to spaces
|
@NotNull String |
toString() |
@Nullable String |
toStringOrNull()
Return string or null if BaseSequence.NULL
|
T |
toUpperCase() |
@NotNull String |
toVisibleWhitespaceString() |
@NotNull Range |
trailingBlankLinesRange() |
@NotNull Range |
trailingBlankLinesRange(com.vladsch.flexmark.util.misc.CharPredicate eolChars,
int startIndex,
int fromIndex)
Get Range of trailing blank lines at given index offsets in sequence
|
@NotNull Range |
trailingBlankLinesRange(int fromIndex) |
@NotNull Range |
trailingBlankLinesRange(int startIndex,
int fromIndex) |
T |
trim() |
T |
trim(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trim(int keep) |
T |
trim(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimEnd() |
T |
trimEnd(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimEnd(int keep) |
T |
trimEnd(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
@NotNull Range |
trimEndRange() |
@NotNull Range |
trimEndRange(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
@NotNull Range |
trimEndRange(int keep) |
@NotNull Range |
trimEndRange(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimEOL()
Trim last eol at the end of this sequence,
|
T |
trimLeadBlankLines() |
@NotNull com.vladsch.flexmark.util.misc.Pair<T,T> |
trimmed() |
@NotNull com.vladsch.flexmark.util.misc.Pair<T,T> |
trimmed(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
@NotNull com.vladsch.flexmark.util.misc.Pair<T,T> |
trimmed(int keep) |
@NotNull com.vladsch.flexmark.util.misc.Pair<T,T> |
trimmed(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimmedEnd() |
T |
trimmedEnd(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimmedEnd(int keep) |
T |
trimmedEnd(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimmedEOL()
Get Trimmed part by
IRichSequence.trimEOL() |
T |
trimmedStart() |
T |
trimmedStart(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimmedStart(int keep) |
T |
trimmedStart(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
Get the characters Trimmed, Trimmed from start/end of this sequence, characters to trim are passed in the sequence argument
|
@NotNull Range |
trimRange() |
@NotNull Range |
trimRange(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
@NotNull Range |
trimRange(int keep) |
@NotNull Range |
trimRange(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimStart() |
T |
trimStart(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
T |
trimStart(int keep) |
T |
trimStart(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
Trim, Trim start/end of this sequence, characters to trim are passed in the sequence argument
|
@NotNull Range |
trimStartRange() |
@NotNull Range |
trimStartRange(@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars) |
@NotNull Range |
trimStartRange(int keep) |
@NotNull Range |
trimStartRange(int keep,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
Range of kept sequence when trim start/end of this sequence is performed, characters to trim are passed in the sequence argument
|
T |
trimTailBlankLines()
Trim leading trailing blank lines in this sequence
|
T |
trimToEndOfLine() |
T |
trimToEndOfLine(boolean includeEol) |
T |
trimToEndOfLine(boolean includeEol,
int index) |
T |
trimToEndOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
boolean includeEol,
int index)
Trim end to end of line containing index
|
T |
trimToEndOfLine(int index) |
T |
trimToStartOfLine() |
T |
trimToStartOfLine(boolean includeEol) |
T |
trimToStartOfLine(boolean includeEol,
int index) |
T |
trimToStartOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
boolean includeEol,
int index)
Trim start to start of line containing index
|
T |
trimToStartOfLine(int index) |
void |
validateIndex(int index) |
void |
validateIndexInclusiveEnd(int index) |
void |
validateStartEnd(int startIndex,
int endIndex) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcountLeading, countLeading, countOf, countTrailing, emptyArray, eolLength, eolStartLength, getBuilder, getColumnAtIndex, getLineColumnAtIndex, insert, nullIfEndsWithNot, nullIfStartsWithNot, nullSequence, sequenceOf, split, split, split, subSequence, toMappedcharAt, chars, codePoints, lengthblankLinesRemovedRanges, blankLinesRemovedRanges, blankLinesRemovedRanges, blankLinesRemovedRanges, columnAtIndex, columnsToNextTabStop, compare, compare, compare, compareReversed, containedBy, containedBy, containsAny, containsAny, containsAnyNot, containsAnyNot, containsAnyNot, countLeading, countLeading, countLeading, countLeadingColumns, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNotSpace, countLeadingNotSpace, countLeadingNotSpace, countLeadingNotSpaceTab, countLeadingNotSpaceTab, countLeadingNotSpaceTab, countLeadingNotWhitespace, countLeadingNotWhitespace, countLeadingNotWhitespace, countLeadingSpace, countLeadingSpace, countLeadingSpace, countLeadingSpaceTab, countLeadingSpaceTab, countLeadingSpaceTab, countLeadingWhitespace, countLeadingWhitespace, countLeadingWhitespace, countOfAny, countOfAny, countOfAny, countOfAnyNot, countOfAnyNot, countOfAnyNot, countOfNotSpaceTab, countOfNotWhitespace, countOfSpaceTab, countOfWhitespace, countTrailing, countTrailing, countTrailing, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNotSpace, countTrailingNotSpace, countTrailingNotSpace, countTrailingNotSpaceTab, countTrailingNotSpaceTab, countTrailingNotSpaceTab, countTrailingNotWhitespace, countTrailingNotWhitespace, countTrailingNotWhitespace, countTrailingSpace, countTrailingSpace, countTrailingSpace, countTrailingSpaceTab, countTrailingSpaceTab, countTrailingSpaceTab, countTrailingWhitespace, countTrailingWhitespace, countTrailingWhitespace, endOfDelimitedBy, endOfDelimitedByAny, endOfDelimitedByAnyNot, endOfLine, endOfLineAnyEOL, endsWith, endsWith, endsWith, endsWithAnyEOL, endsWithEOL, endsWithSpace, endsWithSpaceTab, endsWithWhitespace, eolEndLength, eolEndLength, eolEndRange, eolStartLength, eolStartRange, equals, expandTo, firstChar, getVisibleSpacesMap, hashCode, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOfAll, indexOfAny, indexOfAny, indexOfAny, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfNot, indexOfNot, indexOfNot, isBlank, isEmpty, isNotBlank, isNotEmpty, isVisibleWhitespace, lastChar, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfNot, lastIndexOfNot, lastIndexOfNot, leadingBlankLinesRange, leadingBlankLinesRange, leadingBlankLinesRange, leadingBlankLinesRange, lineColumnAtIndex, lineRangeAt, lineRangeAtAnyEOL, matchChars, matchChars, matchChars, matchChars, matchCharsIgnoreCase, matchCharsIgnoreCase, matchCharsReversed, matchCharsReversed, matchCharsReversedIgnoreCase, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCountIgnoreCase, matchedCharCountIgnoreCase, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversedIgnoreCase, matchedCharCountReversedIgnoreCase, matches, matches, matchesIgnoreCase, padEnd, padEnd, padStart, padStart, parseIntOrDefault, parseIntOrDefault, parseIntOrNull, parseIntOrNull, parseLongOrNull, parseLongOrNull, parseNumberOrNull, parseNumberPrefixOrNull, parseUnsignedIntOrDefault, parseUnsignedIntOrDefault, parseUnsignedIntOrNull, parseUnsignedIntOrNull, safeCharAt, split, split, split, split, split, splitEOL, splitEOL, splitList, splitList, splitList, splitList, splitList, splitListEOL, splitListEOL, splitListEOL, startOfDelimitedBy, startOfDelimitedByAny, startOfDelimitedByAnyNot, startOfLine, startOfLineAnyEOL, startsWith, startsWith, startsWith, startsWithAnyEOL, startsWithEOL, startsWithSpace, startsWithSpaceTab, startsWithWhitespace, subSequence, subSequence, subSequenceAfter, subSequenceBefore, subSequenceBeforeAfter, toStringArray, toVisibleWhitespaceString, trailingBlankLinesRange, trailingBlankLinesRange, trailingBlankLinesRange, trailingBlankLinesRange, trim, trim, trim, trim, trimEnd, trimEnd, trimEnd, trimEnd, trimEndRange, trimEndRange, trimEndRange, trimEndRange, trimEOL, trimLeadBlankLines, trimmed, trimmed, trimmed, trimmed, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEOL, trimmedStart, trimmedStart, trimmedStart, trimmedStart, trimRange, trimRange, trimRange, trimRange, trimStart, trimStart, trimStart, trimStart, trimStartRange, trimStartRange, trimStartRange, trimStartRange, trimTailBlankLines, truncateTo, validateIndex, validateIndexInclusiveEnd, validateStartEndpublic IRichSequenceBase(int hash)
NOTE: the hash code computed for this class is equivalent to the string hash of the same characters to ensure that equals can use the hash code for quick failure. CharSequence hash code is not specified therefore when in doubt about how it is computed then 0 should be passed to this constructor to compute one that is equal to the string content.
hash - hash code for the char sequence.@Contract(pure=true,
value="null -> false")
public final boolean equals(Object o)
equals in interface IRichSequence<T extends IRichSequence<T>>equals in class Objecto - any char sequence@Contract(pure=true) public final int hashCode()
hashCode in interface IRichSequence<T extends IRichSequence<T>>hashCode in class Object@Contract(pure=true,
value="null -> false")
public final boolean equalsIgnoreCase(@Nullable
@Nullable Object other)
IRichSequenceequalsIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>other - characters to match against@Contract(pure=true,
value="null, _ ->false")
public final boolean equals(@Nullable
@Nullable Object other,
boolean ignoreCase)
IRichSequenceequals in interface IRichSequence<T extends IRichSequence<T>>other - characters to match againstignoreCase - case ignored when truepublic int compareTo(@NotNull
@NotNull CharSequence o)
compareTo in interface Comparable<CharSequence>@NotNull public final T sequenceOf(@Nullable @Nullable CharSequence charSequence)
IRichSequencesequenceOf in interface IRichSequence<T extends IRichSequence<T>>charSequence - char sequence from which to construct a rich char sequence@NotNull public final T sequenceOf(@Nullable @Nullable CharSequence charSequence, int startIndex)
IRichSequencesequenceOf in interface IRichSequence<T extends IRichSequence<T>>charSequence - char sequence from which to construct a rich char sequencestartIndex - start index of the sequence to use@NotNull public final T subSequence(int startIndex)
IRichSequencesubSequence in interface IRichSequence<T extends IRichSequence<T>>startIndex - offset from startIndex of this sequence@NotNull public final T subSequence(@NotNull @NotNull Range range)
subSequence in interface IRichSequence<T extends IRichSequence<T>>range - range to get, coordinates offset form start of this sequence@NotNull public final T subSequenceBefore(@NotNull @NotNull Range range)
subSequenceBefore in interface IRichSequence<T extends IRichSequence<T>>range - range to get, coordinates offset form start of this sequenceIRichSequence.nullSequence()@NotNull public final T subSequenceAfter(@NotNull @NotNull Range range)
subSequenceAfter in interface IRichSequence<T extends IRichSequence<T>>range - range to get, coordinates offset form start of this sequenceIRichSequence.nullSequence()public final com.vladsch.flexmark.util.misc.Pair<T,T> subSequenceBeforeAfter(Range range)
range - range to get, coordinates offset form start of this sequenceIRichSequence.nullSequence()@NotNull public final T endSequence(int startIndex, int endIndex)
IRichSequenceendSequence in interface IRichSequence<T extends IRichSequence<T>>startIndex - offset from endIndex of sequence [ 0..length() )endIndex - offset from endIndex of sequence [ 0..length() )@NotNull public final T endSequence(int startIndex)
IRichSequenceendSequence in interface IRichSequence<T extends IRichSequence<T>>startIndex - offset from endIndex of sequence [ 0..length() )public final char endCharAt(int index)
IRichSequenceendCharAt in interface IRichSequence<T extends IRichSequence<T>>index - offset from end of sequence@NotNull public final T midSequence(int startIndex, int endIndex)
IRichSequenceno exceptions are thrown, instead a \0 is returned for an invalid index positions
midSequence in interface IRichSequence<T extends IRichSequence<T>>startIndex - offset into this sequenceendIndex - offset into this sequence@NotNull public final T midSequence(int startIndex)
IRichSequenceno exceptions are thrown, instead a \0 is returned for an invalid index positions
midSequence in interface IRichSequence<T extends IRichSequence<T>>startIndex - offset into this sequencepublic final char midCharAt(int index)
IRichSequencemidCharAt in interface IRichSequence<T extends IRichSequence<T>>index - of character to getpublic final char lastChar()
lastChar in interface IRichSequence<T extends IRichSequence<T>>public final char firstChar()
firstChar in interface IRichSequence<T extends IRichSequence<T>>public final void validateIndex(int index)
public final void validateIndexInclusiveEnd(int index)
public final void validateStartEnd(int startIndex,
int endIndex)
public char safeCharAt(int index)
IRichSequencesafeCharAt in interface IRichSequence<T extends IRichSequence<T>>index - index@NotNull public T safeSubSequence(int startIndex, int endIndex)
IRichSequenceNOTE: the returned value should only depend on start/end indices. If a subsequence of this sequence with matching start/end should equal (using equals()) all such subsequences of this sequence.
safeSubSequence in interface IRichSequence<T extends IRichSequence<T>>startIndex - offset from startIndex of this sequenceendIndex - offset from startIndex of this sequence@NotNull public T safeSubSequence(int startIndex)
IRichSequenceNOTE: the returned value should only depend on start/end indices. If a subsequence of this sequence with matching start/end should equal (using equals()) all such subsequences of this sequence.
safeSubSequence in interface IRichSequence<T extends IRichSequence<T>>startIndex - offset from startIndex of this sequencepublic boolean isCharAt(int index,
@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate predicate)
IRichSequenceisCharAt in interface IRichSequence<T extends IRichSequence<T>>index - index in stringpredicate - character set predicate@Nullable public @Nullable String toStringOrNull()
IRichSequencetoStringOrNull in interface IRichSequence<T extends IRichSequence<T>>public final int indexOf(@NotNull
@NotNull CharSequence s)
IRichSequenceThe basic methods have overloads for 1, 2, or 3 characters and CharSequence parameters. If fromIndex is not given then for forward searching methods 0 is taken as the value, for reverse searching methods length() is taken as the value
For forward searching methods fromIndex is the minimum start position for search and endIndex is the maximum end position, if not given the length() of string is assumed.
For reverse searching methods fromIndex is the maximum start position for search and startIndex is the minimum end position, if not given then 0 is assumed.
indexOf in interface IRichSequence<T extends IRichSequence<T>>s - character pre whose occurrence to findpublic final int indexOf(@NotNull
@NotNull CharSequence s,
int fromIndex)
indexOf in interface IRichSequence<T extends IRichSequence<T>>public final int indexOf(@NotNull
@NotNull CharSequence s,
int fromIndex,
int endIndex)
indexOf in interface IRichSequence<T extends IRichSequence<T>>public final int indexOf(char c)
indexOf in interface IRichSequence<T extends IRichSequence<T>>public final int indexOf(char c,
int fromIndex)
indexOf in interface IRichSequence<T extends IRichSequence<T>>public final int indexOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s)
indexOfAny in interface IRichSequence<T extends IRichSequence<T>>public final int indexOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index)
indexOfAny in interface IRichSequence<T extends IRichSequence<T>>public final int indexOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s)
indexOfAnyNot in interface IRichSequence<T extends IRichSequence<T>>public final int indexOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex)
indexOfAnyNot in interface IRichSequence<T extends IRichSequence<T>>public final int indexOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex,
int endIndex)
indexOfAnyNot in interface IRichSequence<T extends IRichSequence<T>>public final int indexOfNot(char c)
indexOfNot in interface IRichSequence<T extends IRichSequence<T>>public final int indexOfNot(char c,
int fromIndex)
indexOfNot in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOf(char c)
lastIndexOf in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOf(char c,
int fromIndex)
lastIndexOf in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOfNot(char c)
lastIndexOfNot in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOfNot(char c,
int fromIndex)
lastIndexOfNot in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOf(@NotNull
@NotNull CharSequence s)
lastIndexOf in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOf(@NotNull
@NotNull CharSequence s,
int fromIndex)
lastIndexOf in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex)
lastIndexOfAny in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s)
lastIndexOfAny in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s)
lastIndexOfAnyNot in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex)
lastIndexOfAnyNot in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int startIndex,
int fromIndex)
lastIndexOfAnyNot in interface IRichSequence<T extends IRichSequence<T>>public final int indexOf(char c,
int fromIndex,
int endIndex)
indexOf in interface IRichSequence<T extends IRichSequence<T>>public final int indexOfNot(char c,
int fromIndex,
int endIndex)
indexOfNot in interface IRichSequence<T extends IRichSequence<T>>public final int indexOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex,
int endIndex)
indexOfAny in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOf(@NotNull
@NotNull CharSequence s,
int startIndex,
int fromIndex)
lastIndexOf in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOf(char c,
int startIndex,
int fromIndex)
lastIndexOf in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOfNot(char c,
int startIndex,
int fromIndex)
lastIndexOfNot in interface IRichSequence<T extends IRichSequence<T>>public final int lastIndexOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int startIndex,
int fromIndex)
lastIndexOfAny in interface IRichSequence<T extends IRichSequence<T>>public final int countOfSpaceTab()
countOfSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countOfNotSpaceTab()
countOfNotSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countOfWhitespace()
countOfWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final int countOfNotWhitespace()
countOfNotWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final int countOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex)
countOfAny in interface IRichSequence<T extends IRichSequence<T>>public final int countOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
countOfAny in interface IRichSequence<T extends IRichSequence<T>>public final int countOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex)
countOfAnyNot in interface IRichSequence<T extends IRichSequence<T>>public final int countOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
countOfAnyNot in interface IRichSequence<T extends IRichSequence<T>>public final int countOfAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int fromIndex,
int endIndex)
countOfAny in interface IRichSequence<T extends IRichSequence<T>>public final int countOfAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex)
countOfAnyNot in interface IRichSequence<T extends IRichSequence<T>>public final int countLeading(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
IRichSequenceParameters can be CharPredicate, counts any contiguous leading/trailing characters in the sequence which are contained in the given char set.
All functions have overloads: with no fromIndex then 0 is taken for leading and length() for trailing methods with fromIndex then this is taken as the start for leading and end for trailing methods with fromIndex and endIndex, counting will start at fromIndex and stop at endIndex
countLeading(CharPredicate): count contiguous leading characters from set in this sequence countLeadingNot(CharPredicate): count contiguous leading characters not from set in this sequence countTrailing(CharPredicate): count contiguous leading characters from set in this sequence countTrailingNot(CharPredicate): count contiguous leading characters not from set in this sequence
countLeading in interface IRichSequence<T extends IRichSequence<T>>chars - predicate for set of contiguous characters which should be countedpublic final int countLeading(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex)
countLeading in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
countLeadingNot in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex)
countLeadingNot in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailing(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
countTrailing in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailing(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex)
countTrailing in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
countTrailingNot in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex)
countTrailingNot in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex)
countLeadingNot in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int endIndex)
countTrailingNot in interface IRichSequence<T extends IRichSequence<T>>public final int countLeading(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int fromIndex,
int endIndex)
countLeading in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingColumns(int startColumn,
@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
IRichSequencecountLeadingColumns in interface IRichSequence<T extends IRichSequence<T>>startColumn - column of where this sequence startschars - whitespace characterspublic final int countTrailing(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars,
int startIndex,
int fromIndex)
countTrailing in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingSpace()
countLeadingSpace in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingNotSpace()
countLeadingNotSpace in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingSpace(int startIndex)
countLeadingSpace in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingNotSpace(int startIndex)
countLeadingNotSpace in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingSpace(int startIndex,
int endIndex)
countLeadingSpace in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingNotSpace(int startIndex,
int endIndex)
countLeadingNotSpace in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingSpace()
countTrailingSpace in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingNotSpace()
countTrailingNotSpace in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingSpace(int fromIndex)
countTrailingSpace in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingNotSpace(int fromIndex)
countTrailingNotSpace in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingSpace(int startIndex,
int fromIndex)
countTrailingSpace in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingNotSpace(int startIndex,
int fromIndex)
countTrailingNotSpace in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingSpaceTab()
countLeadingSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingNotSpaceTab()
countLeadingNotSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingSpaceTab(int startIndex)
countLeadingSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingNotSpaceTab(int startIndex)
countLeadingNotSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingSpaceTab(int startIndex,
int endIndex)
countLeadingSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingNotSpaceTab(int startIndex,
int endIndex)
countLeadingNotSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingSpaceTab()
countTrailingSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingNotSpaceTab()
countTrailingNotSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingSpaceTab(int fromIndex)
countTrailingSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingNotSpaceTab(int fromIndex)
countTrailingNotSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingSpaceTab(int startIndex,
int fromIndex)
countTrailingSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingNotSpaceTab(int startIndex,
int fromIndex)
countTrailingNotSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingWhitespace()
countLeadingWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingNotWhitespace()
countLeadingNotWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingWhitespace(int startIndex)
countLeadingWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingNotWhitespace(int startIndex)
countLeadingNotWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingWhitespace(int startIndex,
int endIndex)
countLeadingWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final int countLeadingNotWhitespace(int startIndex,
int endIndex)
countLeadingNotWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingWhitespace()
countTrailingWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingNotWhitespace()
countTrailingNotWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingWhitespace(int fromIndex)
countTrailingWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingNotWhitespace(int fromIndex)
countTrailingNotWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingWhitespace(int startIndex,
int fromIndex)
countTrailingWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final int countTrailingNotWhitespace(int startIndex,
int fromIndex)
countTrailingNotWhitespace in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimStart(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trimStart in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimmedStart(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trimmedStart in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimEnd(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trimEnd in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimmedEnd(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trimmedEnd in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trim(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trim in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull com.vladsch.flexmark.util.misc.Pair<T,T> trimmed(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trimmed in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimStart(int keep)
trimStart in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimmedStart(int keep)
trimmedStart in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimEnd(int keep)
trimEnd in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimmedEnd(int keep)
trimmedEnd in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trim(int keep)
trim in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull com.vladsch.flexmark.util.misc.Pair<T,T> trimmed(int keep)
trimmed in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimStart()
trimStart in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimmedStart()
trimmedStart in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimEnd()
trimEnd in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimmedEnd()
trimmedEnd in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trim()
trim in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull com.vladsch.flexmark.util.misc.Pair<T,T> trimmed()
trimmed in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimStart(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
IRichSequencereturns trimmed sequence or if nothing matched the original sequence
If character set in the form of character sequence is not passed in the SequenceUtils.WHITESPACE are assumed.
trimStart in interface IRichSequence<T extends IRichSequence<T>>keep - minimum length of would be trimmed characters to keep. ie. keep 4, will leave 0..4 as is but remove any >4chars - set of characters to trim from start of line@NotNull public final T trimmedStart(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
IRichSequencereturns trimmed sequence or if nothing matched the original sequence
The pair returning functions return before and after sequence
trimmedStart in interface IRichSequence<T extends IRichSequence<T>>keep - minimum length of would be trimmed characters to keep. ie. keep 4, will leave 0..4 as is but remove any >4chars - set of characters to trim from start of line@NotNull public final T trimEnd(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trimEnd in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimmedEnd(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trimmedEnd in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trim(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trim in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull com.vladsch.flexmark.util.misc.Pair<T,T> trimmed(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trimmed in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trimStartRange(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
IRichSequencereturns range of kept sequence or if nothing matched then Range.NULL is returned, meaning keep all
If character set in the form of character sequence is not passed in the SequenceUtils.WHITESPACE are assumed.
trimStartRange in interface IRichSequence<T extends IRichSequence<T>>keep - minimum length of would be trimmed characters to keep. ie. keep 4, will leave 0..4 as is but remove any >4chars - set of characters to trim from start of line@NotNull public final @NotNull Range trimEndRange(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trimEndRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trimRange(int keep, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trimRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trimStartRange(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trimStartRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trimEndRange(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trimEndRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trimRange(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
trimRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trimStartRange(int keep)
trimStartRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trimEndRange(int keep)
trimEndRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trimRange(int keep)
trimRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trimStartRange()
trimStartRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trimEndRange()
trimEndRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trimRange()
trimRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T padding(int length, char pad)
IRichSequencepadding in interface IRichSequence<T extends IRichSequence<T>>length - lengthpad - char to use for padding@NotNull public final T padding(int length)
padding in interface IRichSequence<T extends IRichSequence<T>>@NotNull public T padStart(int length, char pad)
IRichSequencepadStart in interface IRichSequence<T extends IRichSequence<T>>length - length to padpad - char to use for padding@NotNull public T padEnd(int length, char pad)
padEnd in interface IRichSequence<T extends IRichSequence<T>>@NotNull public T padStart(int length)
padStart in interface IRichSequence<T extends IRichSequence<T>>@NotNull public T padEnd(int length)
padEnd in interface IRichSequence<T extends IRichSequence<T>>public final int eolEndLength()
IRichSequence\n - 1 \r - 1 \r\n - 2
eolEndLength in interface IRichSequence<T extends IRichSequence<T>>public final int eolEndLength(int eolEnd)
IRichSequence\n - 1 \r - 1 \r\n - 2
eolEndLength in interface IRichSequence<T extends IRichSequence<T>>eolEnd - index where the EOL ends, if any, any value can be passed for this
argument. If > length of this sequence then it is the same as passing length(),
if 0 or less then 0 is returned.public final int eolStartLength(int eolStart)
IRichSequence\n - 1 \r - 1 \r\n - 2
eolStartLength in interface IRichSequence<T extends IRichSequence<T>>eolStart - index where the EOL starts, if any, any value can be passed for this
argument. If >= length of this sequence then 0 is returned
if 0 or less then it is the same as 0public final int endOfLine(int index)
IRichSequenceendOfLine in interface IRichSequence<T extends IRichSequence<T>>index - index where to start searching for end of linepublic final int endOfLineAnyEOL(int index)
IRichSequenceendOfLineAnyEOL in interface IRichSequence<T extends IRichSequence<T>>index - index where to start searching for end of linepublic final int startOfLine(int index)
IRichSequencestartOfLine in interface IRichSequence<T extends IRichSequence<T>>index - index where to start searching for end of linepublic final int startOfLineAnyEOL(int index)
IRichSequencestartOfLineAnyEOL in interface IRichSequence<T extends IRichSequence<T>>index - index where to start searching for end of linepublic final int startOfDelimitedByAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index)
startOfDelimitedByAnyNot in interface IRichSequence<T extends IRichSequence<T>>public final int endOfDelimitedByAnyNot(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index)
endOfDelimitedByAnyNot in interface IRichSequence<T extends IRichSequence<T>>public final int startOfDelimitedBy(@NotNull
@NotNull CharSequence s,
int index)
startOfDelimitedBy in interface IRichSequence<T extends IRichSequence<T>>public final int startOfDelimitedByAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index)
startOfDelimitedByAny in interface IRichSequence<T extends IRichSequence<T>>public final int endOfDelimitedBy(@NotNull
@NotNull CharSequence s,
int index)
IRichSequenceFor Any and AnyNot methods uses the CharSequence argument as a character set of possible delimiting characters
endOfDelimitedBy in interface IRichSequence<T extends IRichSequence<T>>s - character sequence delimiting the regionindex - from which to start looking for end of regionpublic final int endOfDelimitedByAny(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate s,
int index)
endOfDelimitedByAny in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range lineRangeAt(int index)
IRichSequencelineRangeAt in interface IRichSequence<T extends IRichSequence<T>>index - index at which to get the line@NotNull public final @NotNull Range lineRangeAtAnyEOL(int index)
IRichSequencelineRangeAtAnyEOL in interface IRichSequence<T extends IRichSequence<T>>index - index at which to get the line@NotNull public final T lineAt(int index)
IRichSequencelineAt in interface IRichSequence<T extends IRichSequence<T>>index - index at which to get the line@NotNull public final T lineAtAnyEOL(int index)
IRichSequencelineAtAnyEOL in interface IRichSequence<T extends IRichSequence<T>>index - index at which to get the line@NotNull public final @NotNull Range eolEndRange(int eolEnd)
IRichSequenceeolEndRange in interface IRichSequence<T extends IRichSequence<T>>eolEnd - index where the EOL ends, if any, any value can be passed for this
argument. If > length of this sequence then it is the same as passing length(),
if 0 or less then 0 is returned.@NotNull public @NotNull Range eolStartRange(int eolStart)
IRichSequenceeolStartRange in interface IRichSequence<T extends IRichSequence<T>>eolStart - index where the EOL starts, if any, any value can be passed for this
argument. If >= length of this sequence then 0 is returned
if 0 or less then it is the same as 0@NotNull public final T trimEOL()
IRichSequencetrimEOL in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimmedEOL()
IRichSequenceIRichSequence.trimEOL()trimmedEOL in interface IRichSequence<T extends IRichSequence<T>>IRichSequence.nullSequence()@NotNull public final T trimTailBlankLines()
IRichSequencetrimTailBlankLines in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T trimLeadBlankLines()
trimLeadBlankLines in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range leadingBlankLinesRange()
leadingBlankLinesRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range leadingBlankLinesRange(int startIndex)
leadingBlankLinesRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range leadingBlankLinesRange(int fromIndex, int endIndex)
leadingBlankLinesRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trailingBlankLinesRange()
trailingBlankLinesRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trailingBlankLinesRange(int fromIndex)
trailingBlankLinesRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trailingBlankLinesRange(int startIndex, int fromIndex)
trailingBlankLinesRange in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull Range trailingBlankLinesRange(com.vladsch.flexmark.util.misc.CharPredicate eolChars, int startIndex, int fromIndex)
IRichSequencetrailingBlankLinesRange in interface IRichSequence<T extends IRichSequence<T>>eolChars - characters to consider as EOL, note IRichSequence.eolStartLength(int) should report length of EOL found if length > 1startIndex - index in sequence from which to start blank line search, also maximum index to include in blank lines range
can be any value, if less than 0 it is the same as 0,
if greater than length() it is the same as length()fromIndex - maximum index in sequence to check and include in range of blank lines
can be any value, if less than 0 it is the same as 0,
if greater than length() it is the same as length()@NotNull public final @NotNull Range leadingBlankLinesRange(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, int fromIndex, int endIndex)
IRichSequenceleadingBlankLinesRange in interface IRichSequence<T extends IRichSequence<T>>eolChars - characters to consider as EOL, note IRichSequence.eolStartLength(int) should report length of EOL found if length > 1fromIndex - minimum index in sequence to check and include in range of blank lines
can be any value, if less than 0 it is the same as 0,
if greater than length() it is the same as length()endIndex - index in sequence from which to start blank line search, also maximum index to include in blank lines range
can be any value, if less than 0 it is the same as 0,
if greater than length() it is the same as length()@NotNull public final @NotNull List<Range> blankLinesRemovedRanges()
blankLinesRemovedRanges in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull List<Range> blankLinesRemovedRanges(int fromIndex)
blankLinesRemovedRanges in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull List<Range> blankLinesRemovedRanges(int fromIndex, int endIndex)
blankLinesRemovedRanges in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull List<Range> blankLinesRemovedRanges(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, int fromIndex, int endIndex)
blankLinesRemovedRanges in interface IRichSequence<T extends IRichSequence<T>>@NotNull public T trimToEndOfLine(boolean includeEol)
trimToEndOfLine in interface IRichSequence<T extends IRichSequence<T>>@NotNull public T trimToEndOfLine(int index)
trimToEndOfLine in interface IRichSequence<T extends IRichSequence<T>>@NotNull public T trimToEndOfLine()
trimToEndOfLine in interface IRichSequence<T extends IRichSequence<T>>@NotNull public T trimToEndOfLine(boolean includeEol, int index)
trimToEndOfLine in interface IRichSequence<T extends IRichSequence<T>>@NotNull public T trimToStartOfLine(boolean includeEol)
trimToStartOfLine in interface IRichSequence<T extends IRichSequence<T>>@NotNull public T trimToStartOfLine(int index)
trimToStartOfLine in interface IRichSequence<T extends IRichSequence<T>>@NotNull public T trimToStartOfLine()
trimToStartOfLine in interface IRichSequence<T extends IRichSequence<T>>@NotNull public T trimToStartOfLine(boolean includeEol, int index)
trimToStartOfLine in interface IRichSequence<T extends IRichSequence<T>>@NotNull public T trimToEndOfLine(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, boolean includeEol, int index)
IRichSequencetrimToEndOfLine in interface IRichSequence<T extends IRichSequence<T>>eolChars - characters to consider as EOL, note IRichSequence.eolStartLength(int) should report length of EOL found if length > 1includeEol - true if EOL is to be included in the lineindex - index for offset contained by the line
can be any value, if less than 0 it is the same as 0,
if greater than length() it is the same as length()@NotNull public T trimToStartOfLine(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, boolean includeEol, int index)
IRichSequencetrimToStartOfLine in interface IRichSequence<T extends IRichSequence<T>>eolChars - characters to consider as EOL, note IRichSequence.eolStartLength(int) should report length of EOL found if length > 1includeEol - true if EOL is to be included in the lineindex - index for offset contained by the line
can be any value, if less than 0 it is the same as 0,
if greater than length() it is the same as length()@NotNull public final T ifNull(@NotNull T other)
IRichSequenceifNull in interface IRichSequence<T extends IRichSequence<T>>other - based sequence to return if this is nullSequence()@NotNull public final T ifNullEmptyAfter(@NotNull T other)
IRichSequenceifNullEmptyAfter in interface IRichSequence<T extends IRichSequence<T>>other - based sequence from which to take the empty sequence@NotNull public final T ifNullEmptyBefore(@NotNull T other)
IRichSequenceifNullEmptyBefore in interface IRichSequence<T extends IRichSequence<T>>other - based sequence from which to take the empty sequence@NotNull public final T nullIfEmpty()
IRichSequencenullIfEmpty in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIfBlank()
IRichSequencenullIfBlank in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIf(boolean condition)
IRichSequencenullIf in interface IRichSequence<T extends IRichSequence<T>>condition - when true return NULL else this@NotNull public final T nullIfNot(@NotNull @NotNull BiPredicate<? super T,? super CharSequence> predicate, CharSequence... matches)
nullIfNot in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIf(@NotNull @NotNull Predicate<? super CharSequence> predicate, CharSequence... matches)
IRichSequencenullIf in interface IRichSequence<T extends IRichSequence<T>>predicate - sequence predicatematches - match sequence list@NotNull public final T nullIfNot(@NotNull @NotNull Predicate<? super CharSequence> predicate, CharSequence... matches)
nullIfNot in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIf(CharSequence... matches)
IRichSequencenullIf in interface IRichSequence<T extends IRichSequence<T>>matches - match sequence list@NotNull public final T nullIfNot(CharSequence... matches)
nullIfNot in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIfStartsWith(CharSequence... matches)
nullIfStartsWith in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIfNotStartsWith(CharSequence... matches)
nullIfNotStartsWith in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIfEndsWith(CharSequence... matches)
nullIfEndsWith in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIfNotEndsWith(CharSequence... matches)
nullIfNotEndsWith in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIfStartsWithIgnoreCase(CharSequence... matches)
nullIfStartsWithIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIfNotStartsWithIgnoreCase(CharSequence... matches)
nullIfNotStartsWithIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIfEndsWithIgnoreCase(CharSequence... matches)
nullIfEndsWithIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIfNotEndsWithIgnoreCase(CharSequence... matches)
nullIfNotEndsWithIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIfStartsWith(boolean ignoreCase, CharSequence... matches)
nullIfStartsWith in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIfNotStartsWith(boolean ignoreCase, CharSequence... matches)
nullIfNotStartsWith in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIfEndsWith(boolean ignoreCase, CharSequence... matches)
nullIfEndsWith in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIfNotEndsWith(boolean ignoreCase, CharSequence... matches)
nullIfNotEndsWith in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T nullIf(@NotNull @NotNull BiPredicate<? super T,? super CharSequence> predicate, CharSequence... matches)
IRichSequencenullIf in interface IRichSequence<T extends IRichSequence<T>>predicate - bi predicate for test, first argument is always this, second is one of the match sequencesmatches - match sequence listpublic final boolean isNull()
isNull in interface IRichSequence<T extends IRichSequence<T>>public final boolean isNotNull()
isNotNull in interface IRichSequence<T extends IRichSequence<T>>public final boolean isEmpty()
isEmpty in interface IRichSequence<T extends IRichSequence<T>>public final boolean isBlank()
isBlank in interface IRichSequence<T extends IRichSequence<T>>public final boolean isNotEmpty()
isNotEmpty in interface IRichSequence<T extends IRichSequence<T>>public final boolean isNotBlank()
isNotBlank in interface IRichSequence<T extends IRichSequence<T>>public final boolean endsWith(@NotNull
@NotNull CharSequence suffix)
IRichSequenceendsWith in interface IRichSequence<T extends IRichSequence<T>>suffix - characters to testpublic final boolean endsWith(@NotNull
@NotNull CharSequence suffix,
boolean ignoreCase)
IRichSequenceendsWith in interface IRichSequence<T extends IRichSequence<T>>suffix - characters to testignoreCase - case ignored when truepublic final boolean startsWith(@NotNull
@NotNull CharSequence prefix)
IRichSequencestartsWith in interface IRichSequence<T extends IRichSequence<T>>prefix - characters to testpublic final boolean startsWith(@NotNull
@NotNull CharSequence prefix,
boolean ignoreCase)
IRichSequencestartsWith in interface IRichSequence<T extends IRichSequence<T>>prefix - characters to testignoreCase - case ignored when truepublic final boolean endsWith(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
endsWith in interface IRichSequence<T extends IRichSequence<T>>public final boolean startsWith(@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate chars)
startsWith in interface IRichSequence<T extends IRichSequence<T>>public final boolean endsWithEOL()
endsWithEOL in interface IRichSequence<T extends IRichSequence<T>>public final boolean endsWithAnyEOL()
endsWithAnyEOL in interface IRichSequence<T extends IRichSequence<T>>public final boolean endsWithSpace()
endsWithSpace in interface IRichSequence<T extends IRichSequence<T>>public final boolean endsWithSpaceTab()
endsWithSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final boolean endsWithWhitespace()
endsWithWhitespace in interface IRichSequence<T extends IRichSequence<T>>public final boolean startsWithEOL()
startsWithEOL in interface IRichSequence<T extends IRichSequence<T>>public final boolean startsWithAnyEOL()
startsWithAnyEOL in interface IRichSequence<T extends IRichSequence<T>>public final boolean startsWithSpace()
startsWithSpace in interface IRichSequence<T extends IRichSequence<T>>public final boolean startsWithSpaceTab()
startsWithSpaceTab in interface IRichSequence<T extends IRichSequence<T>>public final boolean startsWithWhitespace()
startsWithWhitespace in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T removeSuffix(@NotNull @NotNull CharSequence suffix)
IRichSequenceremoveSuffix in interface IRichSequence<T extends IRichSequence<T>>suffix - characters to remove@NotNull public final T removePrefix(@NotNull @NotNull CharSequence prefix)
IRichSequenceremovePrefix in interface IRichSequence<T extends IRichSequence<T>>prefix - characters to remove@NotNull public final T removeProperSuffix(@NotNull @NotNull CharSequence suffix)
IRichSequenceremoveProperSuffix in interface IRichSequence<T extends IRichSequence<T>>suffix - characters to remove@NotNull public final T removeProperPrefix(@NotNull @NotNull CharSequence prefix)
IRichSequenceremoveProperPrefix in interface IRichSequence<T extends IRichSequence<T>>prefix - characters to removepublic final boolean endsWithIgnoreCase(@NotNull
@NotNull CharSequence suffix)
IRichSequenceendsWithIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>suffix - characters to testpublic final boolean startsWithIgnoreCase(@NotNull
@NotNull CharSequence prefix)
IRichSequencestartsWithIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>prefix - characters to test@NotNull public final T removeSuffixIgnoreCase(@NotNull @NotNull CharSequence suffix)
IRichSequenceremoveSuffixIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>suffix - characters to remove@NotNull public final T removePrefixIgnoreCase(@NotNull @NotNull CharSequence prefix)
IRichSequenceremovePrefixIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>prefix - characters to remove@NotNull public final T removeProperSuffixIgnoreCase(@NotNull @NotNull CharSequence suffix)
IRichSequenceremoveProperSuffixIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>suffix - characters to remove@NotNull public final T removeProperPrefixIgnoreCase(@NotNull @NotNull CharSequence prefix)
IRichSequenceremoveProperPrefixIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>prefix - characters to remove@NotNull public final T removeSuffix(@NotNull @NotNull CharSequence suffix, boolean ignoreCase)
IRichSequenceremoveSuffix in interface IRichSequence<T extends IRichSequence<T>>suffix - characters to removeignoreCase - case ignored when true@NotNull public final T removePrefix(@NotNull @NotNull CharSequence prefix, boolean ignoreCase)
IRichSequenceremovePrefix in interface IRichSequence<T extends IRichSequence<T>>prefix - characters to removeignoreCase - case ignored when true@NotNull public final T removeProperSuffix(@NotNull @NotNull CharSequence suffix, boolean ignoreCase)
IRichSequenceremoveProperSuffix in interface IRichSequence<T extends IRichSequence<T>>suffix - characters to removeignoreCase - case ignored when true@NotNull public final T removeProperPrefix(@NotNull @NotNull CharSequence prefix, boolean ignoreCase)
IRichSequenceremoveProperPrefix in interface IRichSequence<T extends IRichSequence<T>>prefix - characters to removeignoreCase - case ignored when true@NotNull public T insert(int index, @NotNull @NotNull CharSequence chars)
IRichSequenceinsert in interface IRichSequence<T extends IRichSequence<T>>index - index of insertion. if >length of this sequence then same as length, if <0 then same as 0chars - char sequence to insert@NotNull public T delete(int startIndex, int endIndex)
IRichSequencedelete in interface IRichSequence<T extends IRichSequence<T>>startIndex - start index of deletionendIndex - end index, not inclusive, of insertion@NotNull public final T toLowerCase()
IRichSequencetoLowerCase in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T toUpperCase()
toUpperCase in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T toNbSp()
IRichSequencetoNbSp in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T toSpc()
IRichSequencetoSpc in interface IRichSequence<T extends IRichSequence<T>>public final boolean matches(@NotNull
@NotNull CharSequence chars,
boolean ignoreCase)
matches in interface IRichSequence<T extends IRichSequence<T>>public final boolean matches(@NotNull
@NotNull CharSequence chars)
IRichSequencematches in interface IRichSequence<T extends IRichSequence<T>>chars - characters to match againstpublic final boolean matchesIgnoreCase(@NotNull
@NotNull CharSequence chars)
matchesIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>public final boolean matchChars(@NotNull
@NotNull CharSequence chars,
int startIndex,
boolean ignoreCase)
IRichSequencematchChars in interface IRichSequence<T extends IRichSequence<T>>chars - characters to match againststartIndex - index from which to start the matchignoreCase - if true match ignoring case differencespublic final boolean matchChars(@NotNull
@NotNull CharSequence chars,
int startIndex)
matchChars in interface IRichSequence<T extends IRichSequence<T>>public final boolean matchCharsIgnoreCase(@NotNull
@NotNull CharSequence chars,
int startIndex)
matchCharsIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>public final boolean matchChars(@NotNull
@NotNull CharSequence chars,
boolean ignoreCase)
matchChars in interface IRichSequence<T extends IRichSequence<T>>public final boolean matchChars(@NotNull
@NotNull CharSequence chars)
IRichSequencematchChars in interface IRichSequence<T extends IRichSequence<T>>chars - characters to match againstpublic final boolean matchCharsIgnoreCase(@NotNull
@NotNull CharSequence chars)
matchCharsIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>public final boolean matchCharsReversed(@NotNull
@NotNull CharSequence chars,
int endIndex,
boolean ignoreCase)
IRichSequencematchCharsReversed in interface IRichSequence<T extends IRichSequence<T>>chars - characters to match againstendIndex - index from which to start the match and proceed to 0ignoreCase - if true match ignoring case differencespublic final boolean matchCharsReversed(@NotNull
@NotNull CharSequence chars,
int endIndex)
matchCharsReversed in interface IRichSequence<T extends IRichSequence<T>>public final boolean matchCharsReversedIgnoreCase(@NotNull
@NotNull CharSequence chars,
int endIndex)
matchCharsReversedIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>public final int matchedCharCount(@NotNull
@NotNull CharSequence chars,
int startIndex,
int endIndex,
boolean ignoreCase)
matchedCharCount in interface IRichSequence<T extends IRichSequence<T>>public final int matchedCharCount(@NotNull
@NotNull CharSequence chars,
int startIndex,
boolean ignoreCase)
matchedCharCount in interface IRichSequence<T extends IRichSequence<T>>public final int matchedCharCount(@NotNull
@NotNull CharSequence chars,
int startIndex,
int endIndex)
matchedCharCount in interface IRichSequence<T extends IRichSequence<T>>public final int matchedCharCount(@NotNull
@NotNull CharSequence chars,
int startIndex)
matchedCharCount in interface IRichSequence<T extends IRichSequence<T>>public final int matchedCharCountIgnoreCase(@NotNull
@NotNull CharSequence chars,
int startIndex)
matchedCharCountIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>public final int matchedCharCountIgnoreCase(@NotNull
@NotNull CharSequence chars,
int startIndex,
int endIndex)
matchedCharCountIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>public final int matchedCharCountReversedIgnoreCase(@NotNull
@NotNull CharSequence chars,
int startIndex,
int fromIndex)
matchedCharCountReversedIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>public final int matchedCharCountReversed(@NotNull
@NotNull CharSequence chars,
int startIndex,
int fromIndex)
matchedCharCountReversed in interface IRichSequence<T extends IRichSequence<T>>public final int matchedCharCountReversed(@NotNull
@NotNull CharSequence chars,
int fromIndex,
boolean ignoreCase)
matchedCharCountReversed in interface IRichSequence<T extends IRichSequence<T>>public final int matchedCharCountReversed(@NotNull
@NotNull CharSequence chars,
int fromIndex)
matchedCharCountReversed in interface IRichSequence<T extends IRichSequence<T>>public final int matchedCharCountReversedIgnoreCase(@NotNull
@NotNull CharSequence chars,
int fromIndex)
matchedCharCountReversedIgnoreCase in interface IRichSequence<T extends IRichSequence<T>>public final int matchedCharCount(@NotNull
@NotNull CharSequence chars,
int startIndex,
int endIndex,
boolean fullMatchOnly,
boolean ignoreCase)
IRichSequencematchedCharCount in interface IRichSequence<T extends IRichSequence<T>>chars - characters to match againststartIndex - index from which to start the matchendIndex - index at which to end the matchingfullMatchOnly - if true will do quick fail if length of chars is longer than characters after startIndex in this sequenceignoreCase - if true match ignoring case differencespublic final int matchedCharCountReversed(@NotNull
@NotNull CharSequence chars,
int startIndex,
int fromIndex,
boolean ignoreCase)
IRichSequencematchedCharCountReversed in interface IRichSequence<T extends IRichSequence<T>>chars - characters to match againststartIndex - index at which to stop the matchfromIndex - index from which to start the match, not inclusive, matching starts at fromIndex-1 and proceeds towards 0ignoreCase - if true match ignoring case differences@NotNull public @NotNull String toString()
toString in interface CharSequencetoString in class Object@NotNull public final @NotNull String normalizeEOL()
IRichSequencenormalizeEOL in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull String normalizeEndWithEOL()
IRichSequencenormalizeEndWithEOL in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull String toVisibleWhitespaceString()
toVisibleWhitespaceString in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull List<T> splitList(@NotNull @NotNull CharSequence delimiter)
splitList in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull List<T> splitList(@NotNull @NotNull CharSequence delimiter, int limit, boolean includeDelims, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
IRichSequencesplitList in interface IRichSequence<T extends IRichSequence<T>>delimiter - sequence of chars on which to split this sequencelimit - max number of segments to splitincludeDelims - if true include delimiters as part of split itemtrimChars - set of characters that should be used for trimming individual split results@NotNull public final @NotNull List<T> splitList(@NotNull @NotNull CharSequence delimiter, int limit, int flags)
splitList in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull List<T> splitList(@NotNull @NotNull CharSequence delimiter, boolean includeDelims, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
splitList in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull List<T> splitListEOL()
splitListEOL in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull List<T> splitListEOL(boolean includeDelims)
splitListEOL in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull List<T> splitListEOL(boolean includeDelims, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
splitListEOL in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull List<T> splitList(@NotNull @NotNull CharSequence delimiter, int limit, int flags, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
IRichSequencesplitList in interface IRichSequence<T extends IRichSequence<T>>delimiter - delimiter char sequence to use for splittinglimit - max number of segments to splitflags - flags for desired options:
SPLIT_INCLUDE_DELIMS: include delimiters as part of split item
SPLIT_TRIM_PARTS: trim the segments, if trimChars is not null or empty then this flag is turned on automatically
SPLIT_SKIP_EMPTY: skip empty segments (or empty after trimming if enabled)
SPLIT_INCLUDE_DELIM_PARTS: include delimiters as separate split item of its own
SPLIT_TRIM_SKIP_EMPTY: same as SPLIT_TRIM_PARTS | SPLIT_SKIP_EMPTYtrimChars - set of characters that should be used for trimming individual split results@NotNull public final T[] splitEOL()
splitEOL in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T[] splitEOL(boolean includeDelims)
splitEOL in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T[] split(@NotNull @NotNull CharSequence delimiter, boolean includeDelims, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
split in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T[] split(@NotNull @NotNull CharSequence delimiter)
split in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T[] split(@NotNull @NotNull CharSequence delimiter, int limit, boolean includeDelims, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
split in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T[] split(@NotNull @NotNull CharSequence delimiter, int limit, int flags)
split in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T[] split(@NotNull @NotNull CharSequence delimiter, int limit, int flags, @Nullable @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimChars)
split in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T appendTo(@NotNull @NotNull StringBuilder out, @Nullable @Nullable CharMapper charMapper)
appendTo in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T appendTo(@NotNull @NotNull StringBuilder out, @Nullable @Nullable CharMapper charMapper, int startIndex)
appendTo in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T appendTo(@NotNull @NotNull StringBuilder out)
appendTo in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T appendTo(@NotNull @NotNull StringBuilder out, int startIndex)
appendTo in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T appendTo(@NotNull @NotNull StringBuilder out, int startIndex, int endIndex)
appendTo in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T appendTo(@NotNull @NotNull StringBuilder out, @Nullable @Nullable CharMapper charMapper, int startIndex, int endIndex)
IRichSequenceappendTo in interface IRichSequence<T extends IRichSequence<T>>out - string buildercharMapper - mapping to use for output or null if nonestartIndex - start indexendIndex - end index@NotNull public final T appendRangesTo(@NotNull @NotNull StringBuilder out, @Nullable @Nullable CharMapper charMapper, Range... ranges)
IRichSequenceappendRangesTo in interface IRichSequence<T extends IRichSequence<T>>out - string builder to append tocharMapper - mapping to use for output or null if noneranges - ranges to append, null range or one for which range.isNull() is true ranges are skipped@NotNull public final T appendRangesTo(@NotNull @NotNull StringBuilder out, Range... ranges)
appendRangesTo in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T appendRangesTo(@NotNull @NotNull StringBuilder out, Iterable<? extends Range> ranges)
appendRangesTo in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T appendRangesTo(@NotNull @NotNull StringBuilder out, @Nullable @Nullable CharMapper charMapper, Iterable<? extends Range> ranges)
appendRangesTo in interface IRichSequence<T extends IRichSequence<T>>@NotNull
public final @NotNull int[] indexOfAll(@NotNull
@NotNull CharSequence s)
IRichSequenceindexOfAll in interface IRichSequence<T extends IRichSequence<T>>s - sequence whose indices to find@NotNull public final T appendEOL()
appendEOL in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T suffixWithEOL()
suffixWithEOL in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T prefixWithEOL()
prefixWithEOL in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T prefixOnceWithEOL()
prefixOnceWithEOL in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T suffixOnceWithEOL()
suffixOnceWithEOL in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T appendSpace()
appendSpace in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T suffixWithSpace()
suffixWithSpace in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T prefixWithSpace()
prefixWithSpace in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T appendSpaces(int count)
appendSpaces in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T suffixWithSpaces(int count)
suffixWithSpaces in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T prefixWithSpaces(int count)
prefixWithSpaces in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T prefixOnceWithSpace()
prefixOnceWithSpace in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T suffixOnceWithSpace()
suffixOnceWithSpace in interface IRichSequence<T extends IRichSequence<T>>@NotNull public T prefixWith(@Nullable @Nullable CharSequence prefix)
IRichSequenceprefixWith in interface IRichSequence<T extends IRichSequence<T>>prefix - char sequence@NotNull public T suffixWith(@Nullable @Nullable CharSequence suffix)
IRichSequencesuffixWith in interface IRichSequence<T extends IRichSequence<T>>suffix - char sequence@NotNull public final T prefixOnceWith(@Nullable @Nullable CharSequence prefix)
IRichSequenceprefixOnceWith in interface IRichSequence<T extends IRichSequence<T>>prefix - char sequence@NotNull public final T suffixOnceWith(@Nullable @Nullable CharSequence suffix)
IRichSequencesuffixOnceWith in interface IRichSequence<T extends IRichSequence<T>>suffix - char sequence@NotNull public final T replace(int startIndex, int endIndex, @NotNull @NotNull CharSequence replacement)
IRichSequencereplace in interface IRichSequence<T extends IRichSequence<T>>startIndex - start index of replaced partendIndex - end index of replaced partreplacement - char sequence@NotNull public final T replace(@NotNull @NotNull CharSequence find, @NotNull @NotNull CharSequence replace)
IRichSequencereplace in interface IRichSequence<T extends IRichSequence<T>>find - sequence to findreplace - replacement sequence@NotNull public final T append(CharSequence... sequences)
IRichSequenceappend in interface IRichSequence<T extends IRichSequence<T>>sequences - list of char sequences to append to this sequence, null sequences are skipped@NotNull public final T append(Iterable<? extends CharSequence> sequences)
append in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final T extractRanges(Range... ranges)
IRichSequenceNOTE: BasedSequence ranges must be non-overlapping and ordered by startOffset or IllegalArgumentException will be thrown
extractRanges in interface IRichSequence<T extends IRichSequence<T>>ranges - ranges to extract@NotNull public final T extractRanges(Iterable<Range> ranges)
extractRanges in interface IRichSequence<T extends IRichSequence<T>>public final int columnAtIndex(int index)
columnAtIndex in interface IRichSequence<T extends IRichSequence<T>>@NotNull public final @NotNull com.vladsch.flexmark.util.misc.Pair<Integer,Integer> lineColumnAtIndex(int index)
IRichSequencelineColumnAtIndex in interface IRichSequence<T extends IRichSequence<T>>index - index for which to get line informationpublic boolean isIn(@NotNull
@NotNull String[] texts)
isIn in interface IRichSequence<T extends IRichSequence<T>>public boolean isIn(@NotNull
@NotNull Collection<? extends CharSequence> texts)
isIn in interface IRichSequence<T extends IRichSequence<T>>Copyright © 2020. All rights reserved.