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 |
---|---|
ImmutableSortedSet.Builder<E> |
ImmutableSortedSet.Builder.add(E... elements)
Adds each element of
elements to the ImmutableSortedSet ,
ignoring duplicate elements (only the first duplicate element is added). |
ImmutableSortedSet.Builder<E> |
ImmutableSortedSet.Builder.add(E element)
Adds
element to the ImmutableSortedSet . |
ImmutableSortedSet.Builder<E> |
ImmutableSortedSet.Builder.addAll(Iterable<? extends E> elements)
Adds each element of
elements to the ImmutableSortedSet ,
ignoring duplicate elements (only the first duplicate element is added). |
ImmutableSortedSet.Builder<E> |
ImmutableSortedSet.Builder.addAll(Iterator<? extends E> elements)
Adds each element of
elements to the ImmutableSortedSet ,
ignoring duplicate elements (only the first duplicate element is added). |
static <E> ImmutableSortedSet.Builder<E> |
ContiguousSet.builder()
|
static <E extends Comparable<?>> |
ImmutableSortedSet.naturalOrder()
Returns a builder that creates immutable sorted sets whose elements are
ordered by their natural ordering.
|
static <E> ImmutableSortedSet.Builder<E> |
ImmutableSortedSet.orderedBy(Comparator<E> comparator)
Returns a builder that creates immutable sorted sets with an explicit
comparator.
|
static <E extends Comparable<?>> |
ImmutableSortedSet.reverseOrder()
Returns a builder that creates immutable sorted sets whose elements are
ordered by the reverse of their natural ordering.
|
Copyright © 2010-2014. All Rights Reserved.