Uses of Class
com.google.common.collect.ImmutableSet.Builder
-
Packages that use ImmutableSet.Builder Package Description com.google.common.collect This package contains generic collection interfaces and implementations, and other utilities for working with collections. -
-
Uses of ImmutableSet.Builder in com.google.common.collect
Subclasses of ImmutableSet.Builder in com.google.common.collect Modifier and Type Class Description static class
ImmutableSortedSet.Builder<E>
A builder for creating immutable sorted set instances, especiallypublic static final
sets ("constant sets"), with a given comparator.Methods in com.google.common.collect that return ImmutableSet.Builder Modifier and Type Method Description ImmutableSet.Builder<E>
ImmutableSet.Builder. add(E element)
ImmutableSet.Builder<E>
ImmutableSet.Builder. add(E... elements)
ImmutableSet.Builder<E>
ImmutableSet.Builder. addAll(java.lang.Iterable<? extends E> elements)
Adds each element ofelements
to theImmutableSet
, ignoring duplicate elements (only the first duplicate element is added).ImmutableSet.Builder<E>
ImmutableSet.Builder. addAll(java.util.Iterator<? extends E> elements)
static <E> ImmutableSet.Builder<E>
ImmutableSet. builder()
Returns a new builder.static <E> ImmutableSet.Builder<E>
ImmutableSet. builderWithExpectedSize(int expectedSize)
Returns a new builder, expecting the specified number of distinct elements to be added.
-