XNIO API 3.0.7.GA

org.xnio
Class Option.SetBuilder

java.lang.Object
  extended by org.xnio.Option.SetBuilder
Enclosing class:
Option<T>

public static class Option.SetBuilder
extends Object

A builder for an immutable option set.


Method Summary
 Option.SetBuilder add(Option<?> option)
          Add an option to this set.
 Option.SetBuilder addAll(Collection<Option<?>> options)
          Add all options from a collection to this set.
 Set<Option<?>> create()
          Create the immutable option set instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public Option.SetBuilder add(Option<?> option)
Add an option to this set.

Parameters:
option - the option to add
Returns:
this builder

addAll

public Option.SetBuilder addAll(Collection<Option<?>> options)
Add all options from a collection to this set.

Parameters:
options - the options to add
Returns:
this builder

create

public Set<Option<?>> create()
Create the immutable option set instance.

Returns:
the option set

XNIO API 3.0.7.GA

Copyright © 2010 JBoss, a division of Red Hat, Inc.