| Package | Description | 
|---|---|
| com.google.common.collect | This package contains generic collection interfaces and implementations, and other utilities for
 working with collections. | 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ImmutableSortedSet.Builder<E>A builder for creating immutable sorted set instances, especially  public static finalsets ("constant sets"), with a given comparator. | 
| Modifier and Type | Method and Description | 
|---|---|
| ImmutableSet.Builder<E> | ImmutableSet.Builder. add(E... elements)Adds each element of  elementsto theImmutableSet, ignoring duplicate
 elements (only the first duplicate element is added). | 
| ImmutableSet.Builder<E> | ImmutableSet.Builder. add(E element)Adds  elementto theImmutableSet. | 
| ImmutableSet.Builder<E> | ImmutableSet.Builder. addAll(Iterable<? extends E> elements)Adds each element of  elementsto theImmutableSet, ignoring duplicate
 elements (only the first duplicate element is added). | 
| ImmutableSet.Builder<E> | ImmutableSet.Builder. addAll(Iterator<? extends E> elements)Adds each element of  elementsto 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. | 
Copyright © 2010–2018. All rights reserved.