public static interface Selector.Builder extends ResettableBuilder<Selector,Selector.Builder>
Modifier and Type | Method and Description |
---|---|
Selector.Builder |
add(Argument<?>... arguments)
Adds some arguments to this selector.
|
<T> Selector.Builder |
add(ArgumentType<T> type,
T value)
Adds a new
Argument with the specified ArgumentType and
value to this selector. |
Selector.Builder |
add(Iterable<Argument<?>> arguments)
Adds some arguments to this selector.
|
Selector |
build()
Builds an immutable instance of the current state of this selector
builder.
|
Selector.Builder |
remove(Argument<?>... arguments)
Removes the specified arguments, if they exist.
|
Selector.Builder |
remove(ArgumentType<?>... types)
Removes the arguments with the specified
ArgumentType , if they
exist. |
Selector.Builder |
remove(Iterable<Argument<?>> arguments)
Removes the specified arguments, if they exist.
|
Selector.Builder |
type(SelectorType type)
Sets the type of this selector.
|
from, reset
Selector.Builder type(SelectorType type)
type
- The type to setSelector.Builder add(Argument<?>... arguments)
arguments
- The arguments to addSelector.Builder add(Iterable<Argument<?>> arguments)
arguments
- The arguments to add<T> Selector.Builder add(ArgumentType<T> type, T value)
Argument
with the specified ArgumentType
and
value to this selector.T
- The type of the argument valuetype
- The type of the argumentvalue
- The value of the argumentSelector.Builder remove(Argument<?>... arguments)
arguments
- The arguments to removeSelector.Builder remove(Iterable<Argument<?>> arguments)
arguments
- The arguments to removeSelector.Builder remove(ArgumentType<?>... types)
ArgumentType
, if they
exist.types
- The argument types