public abstract static class AbstractOptionSetDataType.AbstractBuilder<T extends Enum<T> & OptionSpecification> extends Object implements UaOptionSet.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBuilder(OptionSetSpecification specification)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
UaOptionSet.Builder |
add(OptionSpecification... options)
Adds the given options (if they are part of
UaOptionSet.Builder.specification()). |
UaOptionSet.Builder |
addAll(Iterable<? extends OptionSpecification> options)
Adds the given options (if they are part of
UaOptionSet.Builder.specification()). |
UaOptionSet.Builder |
clear()
Clears all options.
|
boolean |
contains(OptionSpecification... options)
Returns true if the given options are set in the builder, false otherwise.
|
boolean |
containsAll(Iterable<? extends OptionSpecification> options)
Returns true if the given options are set in the builder, false otherwise.
|
UaOptionSet.Builder |
remove(OptionSpecification... options)
Removes the given options (if they are part of
UaOptionSet.Builder.specification()). |
UaOptionSet.Builder |
removeAll(Iterable<? extends OptionSpecification> options)
Removes the given options (if they are part of
UaOptionSet.Builder.specification()). |
OptionSetSpecification |
specification()
Returns the specification of the
UaOptionSet being built. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildprotected final BitSet data
protected AbstractBuilder(OptionSetSpecification specification)
public final UaOptionSet.Builder add(OptionSpecification... options)
UaOptionSet.BuilderUaOptionSet.Builder.specification()). For OptionSet
Structures, this also sets the respective OptionSet.getValidBits() bits as set.add in interface UaOptionSet.Builderpublic UaOptionSet.Builder addAll(Iterable<? extends OptionSpecification> options)
UaOptionSet.BuilderUaOptionSet.Builder.specification()). For OptionSet
Structures, this also sets the respective OptionSet.getValidBits() bits as set.addAll in interface UaOptionSet.Builderpublic final UaOptionSet.Builder clear()
UaOptionSet.Builderclear in interface UaOptionSet.Builderpublic final boolean contains(OptionSpecification... options)
UaOptionSet.Buildercontains in interface UaOptionSet.Builderpublic boolean containsAll(Iterable<? extends OptionSpecification> options)
UaOptionSet.BuildercontainsAll in interface UaOptionSet.Builderpublic final UaOptionSet.Builder remove(OptionSpecification... options)
UaOptionSet.BuilderUaOptionSet.Builder.specification()). For
OptionSet Structures, this also sets the respective OptionSet.getValidBits()
bits as set.remove in interface UaOptionSet.Builderpublic UaOptionSet.Builder removeAll(Iterable<? extends OptionSpecification> options)
UaOptionSet.BuilderUaOptionSet.Builder.specification()). For
OptionSet Structures, this also sets the respective OptionSet.getValidBits()
bits as set.removeAll in interface UaOptionSet.Builderpublic OptionSetSpecification specification()
UaOptionSet.BuilderUaOptionSet being built.specification in interface UaOptionSet.BuilderCopyright © 2026. All rights reserved.