Package org.jboss.weld.util.collections
Interface ImmutableSet.Builder<T>
-
- Type Parameters:
T
- the type of elements
- Enclosing class:
- ImmutableSet<T>
public static interface ImmutableSet.Builder<T>
Builder for building immutable sets. The builder may be re-used after build() is called.- Author:
- Jozef Hartinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImmutableSet.Builder<T>
add(T item)
ImmutableSet.Builder<T>
addAll(Iterable<? extends T> items)
ImmutableSet.Builder<T>
addAll(T... items)
Set<T>
build()
Create a new immutable set.
-
-
-
Method Detail
-
add
ImmutableSet.Builder<T> add(T item)
-
addAll
ImmutableSet.Builder<T> addAll(Iterable<? extends T> items)
-
addAll
ImmutableSet.Builder<T> addAll(T... items)
-
-