Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
Modifier and Type | Method and Description |
---|---|
ImmutableSortedMultiset.Builder<E> |
ImmutableSortedMultiset.Builder.add(E... elements)
Adds each element of
elements to the ImmutableSortedMultiset . |
ImmutableSortedMultiset.Builder<E> |
ImmutableSortedMultiset.Builder.add(E element)
Adds
element to the ImmutableSortedMultiset . |
ImmutableSortedMultiset.Builder<E> |
ImmutableSortedMultiset.Builder.addAll(Iterable<? extends E> elements)
Adds each element of
elements to the ImmutableSortedMultiset . |
ImmutableSortedMultiset.Builder<E> |
ImmutableSortedMultiset.Builder.addAll(Iterator<? extends E> elements)
Adds each element of
elements to the ImmutableSortedMultiset . |
ImmutableSortedMultiset.Builder<E> |
ImmutableSortedMultiset.Builder.addCopies(E element,
int occurrences)
Adds a number of occurrences of an element to this
ImmutableSortedMultiset . |
static <E extends Comparable<?>> |
ImmutableSortedMultiset.naturalOrder()
Returns a builder that creates immutable sorted multisets whose elements are ordered by their
natural ordering.
|
static <E> ImmutableSortedMultiset.Builder<E> |
ImmutableSortedMultiset.orderedBy(Comparator<E> comparator)
Returns a builder that creates immutable sorted multisets with an explicit comparator.
|
static <E extends Comparable<?>> |
ImmutableSortedMultiset.reverseOrder()
Returns a builder that creates immutable sorted multisets whose elements are ordered by the
reverse of their natural ordering.
|
ImmutableSortedMultiset.Builder<E> |
ImmutableSortedMultiset.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–2020. All rights reserved.