public final class BasedOptionsSequence extends Object implements CharSequence, BasedOptionsHolder
a subSequence() returns a sub-sequence from the original base sequence with updated offset tracking
BasedOptionsHolder.OptionsF_APPLICATION_OPTIONS, F_COLLECT_FIRST256_STATS, F_COLLECT_SEGMENTED_STATS, F_FULL_SEGMENTED_SEQUENCES, F_LIBRARY_OPTIONS, F_NO_ANCHORS, F_TREE_SEGMENTED_SEQUENCES, O_COLLECT_FIRST256_STATS, O_COLLECT_SEGMENTED_STATS, O_FULL_SEGMENTED_SEQUENCES, O_NO_ANCHORS, O_TREE_SEGMENTED_SEQUENCES, SEGMENTED_STATS| Modifier and Type | Method and Description |
|---|---|
boolean |
allOptions(int options)
Options test for options for this sequence
|
boolean |
anyOptions(int options)
Options test for options for this sequence
|
char |
charAt(int index) |
IntStream |
chars() |
IntStream |
codePoints() |
boolean |
equals(Object o) |
<T> T |
getOption(com.vladsch.flexmark.util.data.DataKeyBase<T> dataKey)
Options holder, default has none, only available on BasedSequenceWithOptions
|
int |
getOptionFlags()
Options test for options for this sequence
|
@Nullable com.vladsch.flexmark.util.data.DataHolder |
getOptions()
Options holder, default has none, only available on BasedSequenceWithOptions
|
int |
hashCode() |
int |
length() |
static BasedOptionsSequence |
of(@NotNull CharSequence chars,
com.vladsch.flexmark.util.misc.BitFieldSet<BasedOptionsHolder.Options> optionFlags) |
static BasedOptionsSequence |
of(@NotNull CharSequence chars,
com.vladsch.flexmark.util.misc.BitFieldSet<BasedOptionsHolder.Options> optionFlags,
@Nullable com.vladsch.flexmark.util.data.DataHolder options) |
static BasedOptionsSequence |
of(@NotNull CharSequence chars,
int optionFlags) |
static BasedOptionsSequence |
of(@NotNull CharSequence chars,
int optionFlags,
@Nullable com.vladsch.flexmark.util.data.DataHolder options) |
CharSequence |
subSequence(int start,
int end) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitoptionsToStringpublic int getOptionFlags()
BasedOptionsHolderdefault reports true for global default options (if any) , variation available on BasedSequenceWithOptions
getOptionFlags in interface BasedOptionsHolderpublic boolean allOptions(int options)
BasedOptionsHolderdefault reports true for global default options (if any) , variation available on BasedSequenceWithOptions
allOptions in interface BasedOptionsHolderoptions - option flagspublic boolean anyOptions(int options)
BasedOptionsHolderdefault reports true for global default options (if any) , variation available on BasedSequenceWithOptions
anyOptions in interface BasedOptionsHolderoptions - option flagspublic <T> T getOption(com.vladsch.flexmark.util.data.DataKeyBase<T> dataKey)
BasedOptionsHoldergetOption in interface BasedOptionsHolderT - type of value held by keydataKey - in options@Nullable public @Nullable com.vladsch.flexmark.util.data.DataHolder getOptions()
BasedOptionsHoldergetOptions in interface BasedOptionsHolderpublic int length()
length in interface CharSequencepublic char charAt(int index)
charAt in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequencepublic String toString()
toString in interface CharSequencetoString in class Objectpublic IntStream chars()
chars in interface CharSequencepublic IntStream codePoints()
codePoints in interface CharSequencepublic static BasedOptionsSequence of(@NotNull @NotNull CharSequence chars, com.vladsch.flexmark.util.misc.BitFieldSet<BasedOptionsHolder.Options> optionFlags)
public static BasedOptionsSequence of(@NotNull @NotNull CharSequence chars, int optionFlags)
public static BasedOptionsSequence of(@NotNull @NotNull CharSequence chars, com.vladsch.flexmark.util.misc.BitFieldSet<BasedOptionsHolder.Options> optionFlags, @Nullable @Nullable com.vladsch.flexmark.util.data.DataHolder options)
public static BasedOptionsSequence of(@NotNull @NotNull CharSequence chars, int optionFlags, @Nullable @Nullable com.vladsch.flexmark.util.data.DataHolder options)
Copyright © 2020. All rights reserved.