java.lang.Object
org.xnio.Option.SetBuilder
A builder for an immutable option set.
-
Method Summary
Modifier and TypeMethodDescriptionAdd an option to this set.Add options to this set.Add options to this set.Add options to this set.addAll
(Collection<Option<?>> options) Add all options from a collection to this set.create()
Create the immutable option set instance.
-
Method Details
-
add
Add an option to this set.- Parameters:
option
- the option to add- Returns:
- this builder
-
add
Add options to this set.- Parameters:
option1
- the first option to addoption2
- the second option to add- Returns:
- this builder
-
add
Add options to this set.- Parameters:
option1
- the first option to addoption2
- the second option to addoption3
- the third option to add- Returns:
- this builder
-
add
Add options to this set.- Parameters:
options
- the options to add- Returns:
- this builder
-
addAll
Add all options from a collection to this set.- Parameters:
options
- the options to add- Returns:
- this builder
-
create
Create the immutable option set instance.- Returns:
- the option set
-