a subSequence() returns a sub-sequence from the original base sequence, possibly with a prefix if it falls in range
| Modifier and Type | Field and Description |
|---|---|
| private final BasedSequence | |
| private final CharSequence |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | allOptions(int
option flags options)Implements com. Options test for options for this sequence default reports true for global default options (if any) , variation available on BasedSequenceWithOptions |
| public boolean | anyOptions(int
option flags options)Implements com. Options test for options for this sequence default reports true for global default options (if any) , variation available on BasedSequenceWithOptions |
| public @NotNull BasedSequence | baseSubSequence(int
offset from 0 of original sequence startIndex, int offset from 0 of original sequence endIndex)Overrides com. Implements com. Get a portion of this sequence's base sequence Note this means that if this sequence applies modifications to the original sequence then these modifications are NOT be applied to the returned sequence. |
| public char | charAt(int
the index of the index)char value to be returnedImplements java. Returns the |
| public @NotNull Object | getBase()
Implements com. Get the underlying object on which this sequence contents are based |
| public @NotNull BasedSequence | getBaseSequence()
Implements com. Get the base sequence for the text |
| public int | getEndOffset()
Implements com. Get the end offset of this sequence into |
| public int | getIndexOffset(int
index for which to get the offset in original source index)Implements com. Get the offset of index in this sequence mapped to offset into |
| public <T> T | getOption(DataKeyBase<T>
in options dataKey)Implements com. Options holder, default has none, only available on BasedSequenceWithOptions |
| public int | getOptionFlags()
Implements com. Options test for options for this sequence default reports true for global default options (if any) , variation available on BasedSequenceWithOptions |
| public @Nullable DataHolder | getOptions()
Implements com. Options holder, default has none, only available on BasedSequenceWithOptions |
| public @NotNull Range | getSourceRange()
Implements com. Get the range of this sequence in original |
| public int | getStartOffset()
Implements com. Get the start offset of this sequence into |
| public int | |
| public static PrefixedSubSequence | |
| public static PrefixedSubSequence | |
| public static PrefixedSubSequence | |
| public static PrefixedSubSequence | |
| public static PrefixedSubSequence | |
| public static PrefixedSubSequence | |
| public static PrefixedSubSequence | |
| public static PrefixedSubSequence | |
| public @NotNull BasedSequence | subSequence(int
offset from startIndex of this sequence startIndex, int offset from startIndex of this sequence endIndex)Implements com. Get a portion of this sequence |
| public @NotNull String | toString()
Overrides com. Implements java. Returns a string containing the characters in this sequence in the same order as this sequence. |
| base | back to summary |
|---|---|
| private final BasedSequence base | |
| prefix | back to summary |
|---|---|
| private final CharSequence prefix | |
| PrefixedSubSequence | back to summary |
|---|---|
| private PrefixedSubSequence(CharSequence prefix, BasedSequence baseSeq, int startIndex, int endIndex) | |
| addSegments | back to summary |
|---|---|
public void addSegments(@NotNull IBasedSegmentBuilder<?> builder)
| |
| allOptions | back to summary |
|---|---|
| public boolean allOptions(int options) Implements com. Doc from com. Options test for options for this sequence default reports true for global default options (if any) , variation available on BasedSequenceWithOptions
| |
| anyOptions | back to summary |
|---|---|
| public boolean anyOptions(int options) Implements com. Doc from com. Options test for options for this sequence default reports true for global default options (if any) , variation available on BasedSequenceWithOptions
| |
| baseSubSequence | back to summary |
|---|---|
| public @NotNull BasedSequence baseSubSequence(int startIndex, int endIndex) Overrides com. Implements com. Doc from com. Get a portion of this sequence's base sequence Note this means that if this sequence applies modifications to the original sequence then these modifications are NOT be applied to the returned sequence. Note It should only be implemented in classes which provide base sequences such as
| |
| charAt | back to summary |
|---|---|
| public char charAt(int index) Implements java. Doc from java. Returns the If the
| |
| getBase | back to summary |
|---|---|
| public @NotNull Object getBase() Implements com. Doc from com. Get the underlying object on which this sequence contents are based | |
| getBaseSequence | back to summary |
|---|---|
| public @NotNull BasedSequence getBaseSequence() Implements com. Doc from com. Get the base sequence for the text
| |
| getEndOffset | back to summary |
|---|---|
| public int getEndOffset() Implements com. Doc from com. Get the end offset of this sequence into
| |
| getIndexOffset | back to summary |
|---|---|
| public int getIndexOffset(int index) Implements com. Doc from com. Get the offset of index in this sequence mapped to offset into Note if the character at given index does not equal the corresponding character in the base sequence then this method should return -1 otherwise segmented based sequence will be created for original base character
| |
| getOption | back to summary |
|---|---|
| public <T> T getOption(DataKeyBase<T> dataKey) Implements com. Doc from com. Options holder, default has none, only available on BasedSequenceWithOptions
| |
| getOptionFlags | back to summary |
|---|---|
| public int getOptionFlags() Implements com. Doc from com. Options test for options for this sequence default reports true for global default options (if any) , variation available on BasedSequenceWithOptions
| |
| getOptions | back to summary |
|---|---|
| public @Nullable DataHolder getOptions() Implements com. Doc from com. Options holder, default has none, only available on BasedSequenceWithOptions
| |
| getSourceRange | back to summary |
|---|---|
| public @NotNull Range getSourceRange() Implements com. Doc from com. Get the range of this sequence in original | |
| getStartOffset | back to summary |
|---|---|
| public int getStartOffset() Implements com. Doc from com. Get the start offset of this sequence into
| |
| length | back to summary |
|---|---|
| public int length() Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit
| |
| of | back to summary |
|---|---|
| public static PrefixedSubSequence of(CharSequence prefix, BasedSequence baseSeq)
Deprecated
| |
| of | back to summary |
|---|---|
| public static PrefixedSubSequence of(CharSequence prefix, BasedSequence baseSeq, int startIndex)
Deprecated
| |
| of | back to summary |
|---|---|
| public static PrefixedSubSequence of(CharSequence prefix, BasedSequence baseSeq, int startIndex, int endIndex)
Deprecated
| |
| prefixOf | back to summary |
|---|---|
| public static PrefixedSubSequence prefixOf(CharSequence prefix, BasedSequence baseSeq) | |
| prefixOf | back to summary |
|---|---|
| public static PrefixedSubSequence prefixOf(CharSequence prefix, BasedSequence baseSeq, int startIndex) | |
| prefixOf | back to summary |
|---|---|
| public static PrefixedSubSequence prefixOf(CharSequence prefix, BasedSequence baseSeq, int startIndex, int endIndex) | |
| repeatOf | back to summary |
|---|---|
| public static PrefixedSubSequence repeatOf(CharSequence prefix, int count, BasedSequence baseSeq) | |
| repeatOf | back to summary |
|---|---|
| public static PrefixedSubSequence repeatOf(char prefix, int count, BasedSequence baseSeq) | |
| subSequence | back to summary |
|---|---|
| public @NotNull BasedSequence subSequence(int startIndex, int endIndex) Implements com. Doc from com. Get a portion of this sequence
| |
| toString | back to summary |
|---|---|
| public @NotNull String toString() Overrides com. Implements java. Doc from java. Returns a string containing the characters in this sequence in the same order as this sequence. The length of the string will be the length of this sequence. | |