| 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
A builder for creating immutable sorted set instances, especially
public static final sets ("constant sets"), with a given comparator.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableSet |
ImmutableSet.Builder.add(E... elements)
Adds each element of
elements to the
ImmutableSet, ignoring duplicate elements (only the first duplicate element is added).
|
ImmutableSet |
ImmutableSet.Builder.add(E element)
Adds
element to the
ImmutableSet.
|
ImmutableSet |
ImmutableSet.Builder.addAll(Iterable
Adds each element of
elements to the
ImmutableSet, ignoring duplicate elements (only the first duplicate element is added).
|
ImmutableSet |
ImmutableSet.Builder.addAll(Iterator
Adds each element of
elements to the
ImmutableSet, ignoring duplicate elements (only the first duplicate element is added).
|
static <E> ImmutableSet |
ImmutableSet.builder()
Returns a new builder.
|