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) |
ImmutableSet.Builder<E> |
ImmutableSet.Builder.add(E element) |
ImmutableSet.Builder<E> |
ImmutableSet.Builder.addAll(Iterable<? extends E> elements) |
ImmutableSet.Builder<E> |
ImmutableSet.Builder.addAll(Iterator<? extends E> elements) |
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–2020. All rights reserved.