public interface UaOptionSet extends BitField
Set, it can be thought to be a Set of Options (that can be obtained via
specification() + OptionSetSpecification.getOptions(). Instances can be
converted to Set via the #toSet().
This interface is sealed, only SDK/Codegen shall create implementations of this interface.
Implementations other than the OptionSet are immutable. Instances can be constructed via
OptionSetSpecification.toInstanceBuilder().
| Modifier and Type | Interface and Description |
|---|---|
static interface |
UaOptionSet.Builder
Interface for all Builders that will create UaOptionSet instances.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
contains(OptionSpecification... options)
Returns true if the given option is set.
|
default boolean |
containsAll(Iterable<? extends OptionSpecification> options)
Returns true if the given options are set in the builder, false otherwise.
|
Object |
getValue()
Returns the "Value" of the OptionSet.
|
OptionSetSpecification |
specification()
Returns the specification of this
UaOptionSet. |
default BitSet |
toBitSet()
Returns a
BitSet representation of this OptionSet (set options -> set bits). |
UaOptionSet.Builder |
toBuilder()
Creates a new
UaOptionSet.Builder with set options that are set in this instance. |
default Map<OptionSpecification,Boolean> |
toOptionsMap()
Splits this
UaOptionSet to a Map where keys are the
OptionSetSpecification (from specification()) and values as-if
#contains(OptionSpecification) would have been called per each field. |
default boolean contains(OptionSpecification... options)
OptionSet structure the option can only be
set if it is also marked as valid per OptionSet.getValidBits().default boolean containsAll(Iterable<? extends OptionSpecification> options)
Object getValue()
OptionSet this is the OptionSet.getValue() field
value (note that you must also check OptionSet.getValidBits() to know which bit
positions are valid).OptionSetSpecification specification()
UaOptionSet. This can be used for generic procesing
of the OptionSetSpecification.getOptions().default BitSet toBitSet()
BitSet representation of this OptionSet (set options -> set bits). Note that
modifying the returned BitSet wont modify this object.UaOptionSet.Builder toBuilder()
UaOptionSet.Builder with set options that are set in this instance.default Map<OptionSpecification,Boolean> toOptionsMap()
UaOptionSet to a Map where keys are the
OptionSetSpecification (from specification()) and values as-if
#contains(OptionSpecification) would have been called per each field. The iteration
order of the Map is the order of the options. The returned Map is unmodifiable.Copyright © 2026. All rights reserved.