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 |
ImmutableSortedMultiset.Builder<E>
A builder for creating immutable multiset instances, especially
public static final
multisets ("constant multisets"). |
Modifier and Type | Method and Description |
---|---|
ImmutableMultiset.Builder<E> |
ImmutableMultiset.Builder.add(E... elements)
Adds each element of
elements to the ImmutableMultiset . |
ImmutableMultiset.Builder<E> |
ImmutableMultiset.Builder.add(E element)
Adds
element to the ImmutableMultiset . |
ImmutableMultiset.Builder<E> |
ImmutableMultiset.Builder.addAll(Iterable<? extends E> elements)
Adds each element of
elements to the ImmutableMultiset . |
ImmutableMultiset.Builder<E> |
ImmutableMultiset.Builder.addAll(Iterator<? extends E> elements)
Adds each element of
elements to the ImmutableMultiset . |
ImmutableMultiset.Builder<E> |
ImmutableMultiset.Builder.addCopies(E element,
int occurrences)
Adds a number of occurrences of an element to this
ImmutableMultiset . |
static <E> ImmutableMultiset.Builder<E> |
ImmutableMultiset.builder()
Returns a new builder.
|
ImmutableMultiset.Builder<E> |
ImmutableMultiset.Builder.setCount(E element,
int count)
Adds or removes the necessary occurrences of an element such that the element attains the
desired count.
|
Copyright © 2010–2019. All rights reserved.