Interface BasedOptionsHolder
-
- All Known Subinterfaces:
BasedSequence
,ReplacedBasedSequence
- All Known Implementing Classes:
BasedOptionsSequence
,BasedSequence.EmptyBasedSequence
,BasedSequenceImpl
,CharSubSequence
,MappedBasedSequence
,PrefixedSubSequence
,SegmentedSequence
,SegmentedSequenceFull
,SegmentedSequenceTree
,SubSequence
public interface BasedOptionsHolder
Implemented by BasedOptionsSequence, use instance of it to pass toBasedSequence.of(CharSequence)
and options enabled in it will be accessible to all based sequences or uses of these for testing for options or getting options.Only works with SubSequence base not CharArraySequence
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BasedOptionsHolder.Options
-
Field Summary
Fields Modifier and Type Field Description static int
F_APPLICATION_OPTIONS
static int
F_COLLECT_FIRST256_STATS
static int
F_COLLECT_SEGMENTED_STATS
static int
F_FULL_SEGMENTED_SEQUENCES
static int
F_LIBRARY_OPTIONS
static int
F_NO_ANCHORS
static int
F_TREE_SEGMENTED_SEQUENCES
static BasedOptionsHolder.Options
O_COLLECT_FIRST256_STATS
static BasedOptionsHolder.Options
O_COLLECT_SEGMENTED_STATS
static BasedOptionsHolder.Options
O_FULL_SEGMENTED_SEQUENCES
static BasedOptionsHolder.Options
O_NO_ANCHORS
static BasedOptionsHolder.Options
O_TREE_SEGMENTED_SEQUENCES
static NullableDataKey<SegmentedSequenceStats>
SEGMENTED_STATS
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
allOptions(int options)
Options test for options for this sequenceboolean
anyOptions(int options)
Options test for options for this sequence<T> T
getOption(DataKeyBase<T> dataKey)
Options holder, default has none, only available on BasedSequenceWithOptionsint
getOptionFlags()
Options test for options for this sequenceDataHolder
getOptions()
Options holder, default has none, only available on BasedSequenceWithOptionsstatic java.lang.String
optionsToString(int options)
-
-
-
Field Detail
-
O_COLLECT_SEGMENTED_STATS
static final BasedOptionsHolder.Options O_COLLECT_SEGMENTED_STATS
-
O_COLLECT_FIRST256_STATS
static final BasedOptionsHolder.Options O_COLLECT_FIRST256_STATS
-
O_NO_ANCHORS
static final BasedOptionsHolder.Options O_NO_ANCHORS
-
O_FULL_SEGMENTED_SEQUENCES
static final BasedOptionsHolder.Options O_FULL_SEGMENTED_SEQUENCES
-
O_TREE_SEGMENTED_SEQUENCES
static final BasedOptionsHolder.Options O_TREE_SEGMENTED_SEQUENCES
-
F_COLLECT_SEGMENTED_STATS
static final int F_COLLECT_SEGMENTED_STATS
-
F_COLLECT_FIRST256_STATS
static final int F_COLLECT_FIRST256_STATS
-
F_NO_ANCHORS
static final int F_NO_ANCHORS
-
F_FULL_SEGMENTED_SEQUENCES
static final int F_FULL_SEGMENTED_SEQUENCES
-
F_TREE_SEGMENTED_SEQUENCES
static final int F_TREE_SEGMENTED_SEQUENCES
-
F_LIBRARY_OPTIONS
static final int F_LIBRARY_OPTIONS
- See Also:
- Constant Field Values
-
F_APPLICATION_OPTIONS
static final int F_APPLICATION_OPTIONS
- See Also:
- Constant Field Values
-
SEGMENTED_STATS
static final NullableDataKey<SegmentedSequenceStats> SEGMENTED_STATS
-
-
Method Detail
-
optionsToString
static java.lang.String optionsToString(int options)
-
getOptionFlags
int getOptionFlags()
Options test for options for this sequencedefault reports true for global default options (if any) , variation available on BasedSequenceWithOptions
- Returns:
- option flags for this sequence
-
allOptions
boolean allOptions(int options)
Options test for options for this sequencedefault reports true for global default options (if any) , variation available on BasedSequenceWithOptions
- Parameters:
options
- option flags- Returns:
- true if all option flags passed are set for this sequence
-
anyOptions
boolean anyOptions(int options)
Options test for options for this sequencedefault reports true for global default options (if any) , variation available on BasedSequenceWithOptions
- Parameters:
options
- option flags- Returns:
- true if any option flags passed are set for this sequence
-
getOption
@Nullable <T> T getOption(DataKeyBase<T> dataKey)
Options holder, default has none, only available on BasedSequenceWithOptions- Type Parameters:
T
- type of value held by key- Parameters:
dataKey
- in options- Returns:
- true if data key is available
-
getOptions
@Nullable DataHolder getOptions()
Options holder, default has none, only available on BasedSequenceWithOptions- Returns:
- data holder with options or null if none for this sequence
-
-