- java.lang.Object
-
- org.xnio.Option.SetBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Option.SetBuilder
add(Option<?> option)
Add an option to this set.Option.SetBuilder
add(Option<?>... options)
Add options to this set.Option.SetBuilder
add(Option<?> option1, Option<?> option2)
Add options to this set.Option.SetBuilder
add(Option<?> option1, Option<?> option2, Option<?> option3)
Add options to this set.Option.SetBuilder
addAll(java.util.Collection<Option<?>> options)
Add all options from a collection to this set.java.util.Set<Option<?>>
create()
Create the immutable option set instance.
-
-
-
Method Detail
-
add
public Option.SetBuilder add(Option<?> option)
Add an option to this set.- Parameters:
option
- the option to add- Returns:
- this builder
-
add
public Option.SetBuilder add(Option<?> option1, Option<?> option2)
Add options to this set.- Parameters:
option1
- the first option to addoption2
- the second option to add- Returns:
- this builder
-
add
public Option.SetBuilder add(Option<?> option1, Option<?> option2, Option<?> option3)
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
public Option.SetBuilder add(Option<?>... options)
Add options to this set.- Parameters:
options
- the options to add- Returns:
- this builder
-
addAll
public Option.SetBuilder addAll(java.util.Collection<Option<?>> options)
Add all options from a collection to this set.- Parameters:
options
- the options to add- Returns:
- this builder
-
create
public java.util.Set<Option<?>> create()
Create the immutable option set instance.- Returns:
- the option set
-
-