Module 
Package org.xnio

Class Option.SetBuilder

  • Enclosing class:
    Option<T>

    public static class Option.SetBuilder
    extends java.lang.Object
    A builder for an immutable option set.
    • 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 add
        option2 - 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 add
        option2 - the second option to add
        option3 - 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