Uses of Class
com.google.common.collect.ImmutableSortedSet.Builder
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ImmutableSortedSet.Builder in com.google.common.collect
Modifier and TypeMethodDescriptionAddselement
to theImmutableSortedSet
.Adds each element ofelements
to theImmutableSortedSet
, ignoring duplicate elements (only the first duplicate element is added).Adds each element ofelements
to theImmutableSortedSet
, ignoring duplicate elements (only the first duplicate element is added).Adds each element ofelements
to theImmutableSortedSet
, ignoring duplicate elements (only the first duplicate element is added).static <E> ImmutableSortedSet.Builder
<E> ContiguousSet.builder()
Deprecated.static <E> ImmutableSortedSet.Builder
<E> ImmutableSortedSet.builder()
Deprecated.UseImmutableSortedSet.naturalOrder()
, which offers better type-safety.static <E> ImmutableSortedSet.Builder
<E> ImmutableSortedSet.builderWithExpectedSize
(int expectedSize) Deprecated.Not supported by ImmutableSortedSet.static <E extends Comparable<?>>
ImmutableSortedSet.Builder<E> 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.Builder<E> ImmutableSortedSet.reverseOrder()
Returns a builder that creates immutable sorted sets whose elements are ordered by the reverse of their natural ordering.
ContiguousSet.create(com.google.common.collect.Range<C>, com.google.common.collect.DiscreteDomain<C>)
.