| 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 |
ImmutableList
A builder for creating immutable list instances, especially
public static final lists ("constant lists").
|
static class |
ImmutableMultiset
A builder for creating immutable multiset instances, especially
public static final multisets ("constant multisets").
|
static class |
ImmutableSet
A builder for creating immutable set instances, especially
public static final sets ("constant sets").
|
static class |
ImmutableSortedMultiset
A builder for creating immutable multiset instances, especially
public static final multisets ("constant multisets").
|
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 |
|---|---|
ImmutableCollection |
ImmutableCollection.Builder.add(E... elements)
Adds each element of
elements to the
ImmutableCollection being built.
|
abstract ImmutableCollection |
ImmutableCollection.Builder.add(E element)
Adds
element to the
ImmutableCollection being built.
|
ImmutableCollection |
ImmutableCollection.Builder.addAll(Iterable
Adds each element of
elements to the
ImmutableCollection being built.
|
ImmutableCollection |
ImmutableCollection.Builder.addAll(Iterator
Adds each element of
elements to the
ImmutableCollection being built.
|