Uses of Class
com.google.common.collect.ImmutableSet.Builder
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ImmutableSet.Builder in com.google.common.collect
Modifier and TypeClassDescriptionstatic final class
A builder for creating immutable sorted set instances, especiallypublic static final
sets ("constant sets"), with a given comparator.Modifier and TypeMethodDescriptionAdds each element ofelements
to theImmutableSet
, ignoring duplicate elements (only the first duplicate element is added).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.