Uses of Class
com.google.common.collect.ImmutableSortedSet
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ImmutableSortedSet in com.google.common.collect
Modifier and TypeClassDescriptionclass
ContiguousSet<C extends Comparable>
A sorted set of contiguous values in a givenDiscreteDomain
.Modifier and TypeMethodDescriptionImmutableRangeSet.asSet
(DiscreteDomain<C> domain) Returns anImmutableSortedSet
containing the same values in the given domain contained by this range set.ImmutableSortedSet.Builder.build()
Returns a newly-createdImmutableSortedSet
based on the contents of theBuilder
and its comparator.static <E extends Comparable<? super E>>
ImmutableSortedSet<E> ImmutableSortedSet.copyOf
(E[] elements) Returns an immutable sorted set containing the given elements sorted by their natural ordering.static <E> ImmutableSortedSet
<E> Returns an immutable sorted set containing the given elements sorted by their natural ordering.static <E> ImmutableSortedSet
<E> ImmutableSortedSet.copyOf
(Collection<? extends E> elements) Returns an immutable sorted set containing the given elements sorted by their natural ordering.static <E> ImmutableSortedSet
<E> ImmutableSortedSet.copyOf
(Comparator<? super E> comparator, Iterable<? extends E> elements) Returns an immutable sorted set containing the given elements sorted by the givenComparator
.static <E> ImmutableSortedSet
<E> ImmutableSortedSet.copyOf
(Comparator<? super E> comparator, Collection<? extends E> elements) Returns an immutable sorted set containing the given elements sorted by the givenComparator
.static <E> ImmutableSortedSet
<E> ImmutableSortedSet.copyOf
(Comparator<? super E> comparator, Iterator<? extends E> elements) Returns an immutable sorted set containing the given elements sorted by the givenComparator
.static <E> ImmutableSortedSet
<E> Returns an immutable sorted set containing the given elements sorted by their natural ordering.static <Z> ImmutableSortedSet
<Z> ImmutableSortedSet.copyOf
(Z[] elements) Deprecated.static <E> ImmutableSortedSet
<E> ImmutableSortedSet.copyOfSorted
(SortedSet<E> sortedSet) Returns an immutable sorted set containing the elements of a sorted set, sorted by the sameComparator
.ImmutableSortedMap.descendingKeySet()
ImmutableSortedSet.descendingSet()
abstract ImmutableSortedSet
<E> ImmutableSortedMultiset.elementSet()
ImmutableSortedMap.keySet()
Returns an immutable sorted set of the keys in this map.ImmutableSortedMap.navigableKeySet()
static <E> ImmutableSortedSet
<E> ImmutableSortedSet.of()
Returns the empty immutable sorted set.static <E extends Comparable<? super E>>
ImmutableSortedSet<E> ImmutableSortedSet.of
(E e1) Returns an immutable sorted set containing a single element.static <E> ImmutableSortedSet
<E> ImmutableSortedSet.of
(E e1) Deprecated.Pass a parameter of typeComparable
to useof(Comparable)
.static <E extends Comparable<? super E>>
ImmutableSortedSet<E> ImmutableSortedSet.of
(E e1, E e2) Returns an immutable sorted set containing the given elements sorted by their natural ordering.static <E> ImmutableSortedSet
<E> ImmutableSortedSet.of
(E e1, E e2) Deprecated.Pass the parameters of typeComparable
to useof(Comparable, Comparable)
.static <E extends Comparable<? super E>>
ImmutableSortedSet<E> ImmutableSortedSet.of
(E e1, E e2, E e3) Returns an immutable sorted set containing the given elements sorted by their natural ordering.static <E> ImmutableSortedSet
<E> ImmutableSortedSet.of
(E e1, E e2, E e3) Deprecated.Pass the parameters of typeComparable
to useof(Comparable, Comparable, Comparable)
.static <E extends Comparable<? super E>>
ImmutableSortedSet<E> ImmutableSortedSet.of
(E e1, E e2, E e3, E e4) Returns an immutable sorted set containing the given elements sorted by their natural ordering.static <E> ImmutableSortedSet
<E> ImmutableSortedSet.of
(E e1, E e2, E e3, E e4) Deprecated.Pass the parameters of typeComparable
to useof(Comparable, Comparable, Comparable, Comparable)
.static <E extends Comparable<? super E>>
ImmutableSortedSet<E> ImmutableSortedSet.of
(E e1, E e2, E e3, E e4, E e5) Returns an immutable sorted set containing the given elements sorted by their natural ordering.static <E> ImmutableSortedSet
<E> ImmutableSortedSet.of
(E e1, E e2, E e3, E e4, E e5) Deprecated.Pass the parameters of typeComparable
to useof(Comparable, Comparable, Comparable, Comparable, Comparable)
.static <E extends Comparable<? super E>>
ImmutableSortedSet<E> ImmutableSortedSet.of
(E e1, E e2, E e3, E e4, E e5, E e6, E... remaining) Returns an immutable sorted set containing the given elements sorted by their natural ordering.static <E> ImmutableSortedSet
<E> ImmutableSortedSet.of
(E e1, E e2, E e3, E e4, E e5, E e6, E... remaining) Deprecated.Pass the parameters of typeComparable
to useof(Comparable, Comparable, Comparable, Comparable, Comparable, Comparable, Comparable...)
.final ImmutableSortedSet
<@NonNull E> FluentIterable.toSortedSet
(Comparator<? super E> comparator) Returns anImmutableSortedSet
containing all of the elements from thisFluentIterable
in the order specified bycomparator
, with duplicates (determined bycomparator.compare(x, y) == 0
) removed.Modifier and TypeMethodDescriptionstatic <E> Collector
<E, ?, ImmutableSortedSet<E>> ImmutableSortedSet.toImmutableSortedSet
(Comparator<? super E> comparator) Returns aCollector
that accumulates the input elements into a newImmutableSortedSet
, ordered by the specified comparator.
Comparable
to usecopyOf(Comparable[])
.