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.Builder<E>
A builder for creating immutable list instances, especially
public
static final lists ("constant lists"). |
static class |
ImmutableMultiset.Builder<E>
A builder for creating immutable multiset instances, especially
public static final multisets ("constant multisets"). |
static class |
ImmutableSet.Builder<E>
A builder for creating
ImmutableSet instances. |
static class |
ImmutableSortedMultiset.Builder<E>
A builder for creating immutable multiset instances, especially
public static final
multisets ("constant multisets"). |
static class |
ImmutableSortedSet.Builder<E>
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.Builder<E> |
ImmutableCollection.Builder.add(E... elements)
Adds each element of
elements to the ImmutableCollection
being built. |
abstract ImmutableCollection.Builder<E> |
ImmutableCollection.Builder.add(E element)
Adds
element to the ImmutableCollection being built. |
ImmutableCollection.Builder<E> |
ImmutableCollection.Builder.addAll(Iterable<? extends E> elements)
Adds each element of
elements to the ImmutableCollection
being built. |
ImmutableCollection.Builder<E> |
ImmutableCollection.Builder.addAll(Iterator<? extends E> elements)
Adds each element of
elements to the ImmutableCollection
being built. |
Copyright © 2010-2015. All Rights Reserved.