a subSequence() returns a sub-sequence from the original base sequence with updated offset tracking
| Modifier and Type | Field and Description |
|---|---|
| private final @NotNull CharSequence | |
| private final int | |
| private final @Nullable DataHolder |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| 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 char | charAt(int
the index of the index)char value to be returnedImplements java. Returns the |
| public IntStream | chars()
Overrides default java. Returns a stream of |
| public IntStream | codePoints()
Overrides default java. Returns a stream of code point values from this sequence. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| 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 int | |
| public int | |
| public static BasedOptionsSequence | |
| public static BasedOptionsSequence | |
| public static BasedOptionsSequence | of(@NotNull CharSequence chars, BitFieldSet<BasedOptionsHolder.
|
| public static BasedOptionsSequence | |
| public CharSequence | subSequence(int
the start index, inclusive start, int the end index, exclusive end)Implements java. Returns a |
| public String | toString()
Overrides java. Implements java. Returns a string containing the characters in this sequence in the same order as this sequence. |
| chars | back to summary |
|---|---|
| private final @NotNull CharSequence chars
| |
| optionFlags | back to summary |
|---|---|
| private final int optionFlags | |
| options | back to summary |
|---|---|
| private final @Nullable DataHolder options
| |
| BasedOptionsSequence | back to summary |
|---|---|
| private BasedOptionsSequence(@NotNull CharSequence chars, int optionFlags, @Nullable DataHolder options) | |
| 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
| |
| charAt | back to summary |
|---|---|
| public char charAt(int index) Implements java. Doc from java. Returns the If the
| |
| chars | back to summary |
|---|---|
| public IntStream chars() Overrides default java. Doc from java. Returns a stream of The stream binds to this sequence when the terminal stream operation commences (specifically, for mutable sequences the spliterator for the stream is late-binding). If the sequence is modified during that operation then the result is undefined. | |
| codePoints | back to summary |
|---|---|
| public IntStream codePoints() Overrides default java. Doc from java. Returns a stream of code point values from this sequence. Any surrogate
pairs encountered in the sequence are combined as if by Character.toCodePoint and the result is passed
to the stream. Any other code units, including ordinary BMP characters,
unpaired surrogates, and undefined code units, are zero-extended to
The stream binds to this sequence when the terminal stream operation commences (specifically, for mutable sequences the spliterator for the stream is late-binding). If the sequence is modified during that operation then the result is undefined. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| 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
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| 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 BasedOptionsSequence of(@NotNull CharSequence chars, BitFieldSet<BasedOptionsHolder. | |
| of | back to summary |
|---|---|
| public static BasedOptionsSequence of(@NotNull CharSequence chars, int optionFlags) | |
| of | back to summary |
|---|---|
| public static BasedOptionsSequence of(@NotNull CharSequence chars, BitFieldSet<BasedOptionsHolder. | |
| of | back to summary |
|---|---|
| public static BasedOptionsSequence of(@NotNull CharSequence chars, int optionFlags, @Nullable DataHolder options) | |
| subSequence | back to summary |
|---|---|
| public CharSequence subSequence(int start, int end) Implements java. Doc from java. Returns a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. 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. | |