public final class SubSequence extends BasedSequenceImpl
BasedSequence.EmptyBasedSequenceEMPTY_ARRAY, EMPTY_LIST, EMPTY_SEGMENTS, EOL, EOL_CHAR, EOL_CHAR1, EOL_CHAR2, EOL_CHARS, NULL, SPACE, SPLIT_INCLUDE_DELIM_PARTS, SPLIT_INCLUDE_DELIMS, SPLIT_SKIP_EMPTY, SPLIT_TRIM_PARTS, SPLIT_TRIM_SKIP_EMPTY, WHITESPACE_CHARS, WHITESPACE_NBSP_CHARS, WHITESPACE_NO_EOL_CHARS| Modifier and Type | Method and Description |
|---|---|
BasedSequence |
appendTo(StringBuilder out,
int start,
int end) |
SubSequence |
baseSubSequence(int start,
int end)
Get a portion of the original sequence that this sequence is based on
|
char |
charAt(int index) |
boolean |
equals(Object obj) |
Object |
getBase()
Get the underlying object on which this sequence contents are based
|
SubSequence |
getBaseSequence()
Get the base sequence for the text
|
int |
getEndOffset()
Get the end offset of this sequence into
BasedSequence.getBaseSequence() and BasedSequence.getBase() original text source. |
int |
getIndexOffset(int index)
Get the offset of index in this sequence mapped to offset into
BasedSequence.getBaseSequence() and BasedSequence.getBase() original text source. |
Range |
getSourceRange()
Get the range of this sequence in original
BasedSequence.getBaseSequence() and BasedSequence.getBase() original text source. |
int |
getStartOffset()
Get the start offset of this sequence into
BasedSequence.getBaseSequence() and BasedSequence.getBase() original text source. |
int |
hashCode() |
int |
length() |
static BasedSequence |
of(CharSequence charSequence) |
static BasedSequence |
of(CharSequence charSequence,
int start) |
static BasedSequence |
of(CharSequence charSequence,
int start,
int end) |
SubSequence |
subSequence(int start)
Get a portion of this sequence starting from a given offset to end of the sequence
|
SubSequence |
subSequence(int start,
int end)
Get a portion of this sequence
|
SubSequence |
subSequence(Range range)
Get a portion of this sequence
|
String |
toString() |
append, appendTo, appendTo, baseSubSequence, columnsToNextTabStop, compareTo, containsAllOf, containsSomeOf, countChars, countChars, countChars, countChars, countChars, countChars, countCharsReversed, countCharsReversed, countCharsReversed, countCharsReversed, countCharsReversed, countCharsReversed, countLeading, countLeading, countLeading, countLeading, countLeading, countLeading, countLeadingColumns, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNot, countNotChars, countNotChars, countNotChars, countNotChars, countNotChars, countNotChars, countNotCharsReversed, countNotCharsReversed, countNotCharsReversed, countNotCharsReversed, countNotCharsReversed, countNotCharsReversed, countTrailing, countTrailing, countTrailing, countTrailing, countTrailing, countTrailing, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNot, endCharAt, endOfDelimitedBy, endOfDelimitedByAny, endOfDelimitedByAnyNot, endOfLine, endOfLineAnyEOL, endSequence, endSequence, endsWith, endsWith, endsWithIgnoreCase, eolLength, eolLength, equals, equalsIgnoreCase, expandTo, firstChar, firstNonNull, getColumnAtIndex, getIndexRange, getLineColumnAtIndex, ifNull, ifNullEmptyAfter, ifNullEmptyBefore, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOfAll, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfNot, indexOfNot, indexOfNot, intersect, isBlank, isContinuationOf, isContinuedBy, isEmpty, isNotNull, isNull, lastChar, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfNot, lastIndexOfNot, lastIndexOfNot, lineAt, lineAtAnyEOL, matchChars, matchChars, matchChars, matchChars, matchCharsIgnoreCase, matchCharsIgnoreCase, matchCharsReversed, matchCharsReversed, matchCharsReversedIgnoreCase, matches, matches, matchesIgnoreCase, midCharAt, midSequence, midSequence, normalizeEndWithEOL, normalizeEndWithEOL, normalizeEOL, normalizeEOL, nullIf, nullIf, nullIfBlank, nullIfEmpty, nullIfEndsWith, nullIfEndsWithNot, nullIfNot, nullIfStartsWith, nullIfStartsWithNot, prefixOf, removePrefix, removePrefix, removePrefixIgnoreCase, removeProperPrefix, removeProperPrefix, removeProperPrefixIgnoreCase, removeProperSuffix, removeProperSuffix, removeProperSuffixIgnoreCase, removeSuffix, removeSuffix, removeSuffixIgnoreCase, replace, spliceAtEnd, split, split, split, split, split, split, split, split, startOfDelimitedBy, startOfDelimitedByAny, startOfDelimitedByAnyNot, startOfLine, startOfLineAnyEOL, startsWith, startsWith, startsWithIgnoreCase, suffixOf, toLowerCase, toLowerCase, toMapped, toUpperCase, toUpperCase, toVisibleWhitespaceString, trim, trim, trimEnd, trimEnd, trimEOL, trimLeadBlankLines, trimmedEnd, trimmedEnd, trimmedEOL, trimmedStart, trimmedStart, trimStart, trimStart, trimTailBlankLines, truncateTo, unescape, unescape, unescapeNoEntitiesclone, finalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointspublic SubSequence getBaseSequence()
BasedSequencepublic Object getBase()
BasedSequencepublic int getStartOffset()
BasedSequenceBasedSequence.getBaseSequence() and BasedSequence.getBase() original text source.public int getEndOffset()
BasedSequenceBasedSequence.getBaseSequence() and BasedSequence.getBase() original text source.public int length()
public Range getSourceRange()
BasedSequenceBasedSequence.getBaseSequence() and BasedSequence.getBase() original text source.public int getIndexOffset(int index)
BasedSequenceBasedSequence.getBaseSequence() and BasedSequence.getBase() original text source.index - index for which to get the offset in original sourcepublic char charAt(int index)
public SubSequence subSequence(Range range)
BasedSequencesubSequence in interface BasedSequencesubSequence in class BasedSequenceImplrange - range to get, coordinates offset form start of this sequencepublic SubSequence subSequence(int start)
BasedSequencesubSequence in interface BasedSequencesubSequence in class BasedSequenceImplstart - offset from start of this sequencepublic SubSequence subSequence(int start, int end)
BasedSequencestart - offset from start of this sequenceend - offset from start of this sequencepublic SubSequence baseSubSequence(int start, int end)
BasedSequencestart - offset from 0 of original sequenceend - offset from 0 of original sequencepublic BasedSequence appendTo(StringBuilder out, int start, int end)
appendTo in interface BasedSequenceappendTo in class BasedSequenceImplpublic boolean equals(Object obj)
equals in class BasedSequenceImplpublic String toString()
toString in interface CharSequencetoString in class BasedSequenceImplpublic static BasedSequence of(CharSequence charSequence)
public static BasedSequence of(CharSequence charSequence, int start)
public static BasedSequence of(CharSequence charSequence, int start, int end)
Copyright © 2019. All rights reserved.