public interface SelectorBuilder
Selector
instances.Modifier and Type | Method and Description |
---|---|
SelectorBuilder |
add(Argument<?>... arguments)
Adds some arguments to this selector.
|
<T> SelectorBuilder |
add(ArgumentType<T> type,
T value)
Adds a new
Argument with the specified ArgumentType and
value to this selector. |
SelectorBuilder |
add(Iterable<Argument<?>> arguments)
Adds some arguments to this selector.
|
Selector |
build()
Builds an immutable instance of the current state of this selector
builder.
|
SelectorBuilder |
remove(Argument<?>... arguments)
Removes the specified arguments, if they exist.
|
SelectorBuilder |
remove(ArgumentType<?>... types)
Removes the arguments with the specified
ArgumentType , if they
exist. |
SelectorBuilder |
remove(Iterable<Argument<?>> arguments)
Removes the specified arguments, if they exist.
|
SelectorBuilder |
type(SelectorType type)
Sets the type of this selector.
|
SelectorBuilder type(SelectorType type)
type
- The type to setSelectorBuilder add(Argument<?>... arguments)
arguments
- The arguments to addSelectorBuilder add(Iterable<Argument<?>> arguments)
arguments
- The arguments to add<T> SelectorBuilder 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 argumentSelectorBuilder remove(Argument<?>... arguments)
arguments
- The arguments to removeSelectorBuilder remove(Iterable<Argument<?>> arguments)
arguments
- The arguments to removeSelectorBuilder remove(ArgumentType<?>... types)
ArgumentType
, if they
exist.types
- The argument types