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 final sets ("constant sets"), with a given comparator. |
Modifier and Type | Method and Description |
---|---|
ImmutableSet.Builder<E> |
ImmutableSet.Builder.add(E... elements)
Adds each element of
elements to the ImmutableSet ,
ignoring duplicate elements (only the first duplicate element is added). |
ImmutableSet.Builder<E> |
ImmutableSet.Builder.add(E element)
Adds
element to the ImmutableSet . |
ImmutableSet.Builder<E> |
ImmutableSet.Builder.addAll(Iterable<? extends E> elements)
Adds each element of
elements to the ImmutableSet ,
ignoring duplicate elements (only the first duplicate element is added). |
ImmutableSet.Builder<E> |
ImmutableSet.Builder.addAll(Iterator<? extends E> elements)
Adds each element of
elements to the ImmutableSet ,
ignoring duplicate elements (only the first duplicate element is added). |
static <E> ImmutableSet.Builder<E> |
ImmutableSet.builder()
Returns a new builder.
|
Copyright © 2010-2015. All Rights Reserved.