Uses of Class
com.google.common.collect.ImmutableSortedSet
Packages that use ImmutableSortedSet
Package
Description
Collection interfaces and implementations, and other utilities for collections.
Testing utilities.
-
Uses of ImmutableSortedSet in com.google.common.collect
Subclasses of ImmutableSortedSet in com.google.common.collectModifier and TypeClassDescriptionclass
ContiguousSet<C extends Comparable>
A sorted set of contiguous values in a givenDiscreteDomain
.(package private) final class
Skeletal implementation ofdescendingSet()
.(package private) final class
EmptyContiguousSet<C extends Comparable>
An empty contiguous set.private final class
(package private) final class
RegularContiguousSet<C extends Comparable>
An implementation ofContiguousSet
that contains one or more elements.(package private) final class
An immutable sorted set with one or more elements.Fields in com.google.common.collect declared as ImmutableSortedSetModifier and TypeFieldDescription(package private) ImmutableSortedSet
<E> ImmutableSortedSet.descendingSet
private final ImmutableSortedSet
<E> DescendingImmutableSortedSet.forward
Methods in com.google.common.collect that return ImmutableSortedSetModifier 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.(package private) static <E> ImmutableSortedSet
<E> ImmutableSortedSet.construct
(Comparator<? super E> comparator, int n, E... contents) Constructs anImmutableSortedSet
from the firstn
elements ofcontents
.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
.(package private) ImmutableSortedSet
<C> ContiguousSet.createDescendingSet()
(package private) ImmutableSortedSet
<E> DescendingImmutableSortedSet.createDescendingSet()
(package private) ImmutableSortedSet
<C> EmptyContiguousSet.createDescendingSet()
(package private) ImmutableSortedSet
<C> ImmutableRangeSet.AsSet.createDescendingSet()
(package private) abstract ImmutableSortedSet
<E> ImmutableSortedSet.createDescendingSet()
(package private) ImmutableSortedSet
<E> RegularImmutableSortedSet.createDescendingSet()
(package private) ImmutableSortedSet
<E> ImmutableSortedAsList.delegateCollection()
ImmutableSortedMap.descendingKeySet()
DescendingImmutableSortedSet.descendingSet()
ImmutableSortedSet.descendingSet()
DescendingImmutableSortedMultiset.elementSet()
abstract ImmutableSortedSet
<E> ImmutableSortedMultiset.elementSet()
RegularImmutableSortedMultiset.elementSet()
(package private) ImmutableSortedSet
<E> DescendingImmutableSortedSet.headSetImpl
(E toElement, boolean inclusive) (package private) ImmutableSortedSet
<C> ImmutableRangeSet.AsSet.headSetImpl
(C toElement, boolean inclusive) (package private) abstract ImmutableSortedSet
<E> ImmutableSortedSet.headSetImpl
(E toElement, boolean inclusive) (package private) ImmutableSortedSet
<E> RegularImmutableSortedSet.headSetImpl
(E toElement, boolean inclusive) 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...)
.(package private) ImmutableSortedSet
<C> (package private) ImmutableSortedSet
<E> DescendingImmutableSortedSet.subSetImpl
(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) (package private) ImmutableSortedSet
<C> ImmutableRangeSet.AsSet.subSetImpl
(C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) (package private) abstract ImmutableSortedSet
<E> ImmutableSortedSet.subSetImpl
(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) (package private) ImmutableSortedSet
<E> RegularImmutableSortedSet.subSetImpl
(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) (package private) ImmutableSortedSet
<E> DescendingImmutableSortedSet.tailSetImpl
(E fromElement, boolean inclusive) (package private) ImmutableSortedSet
<C> ImmutableRangeSet.AsSet.tailSetImpl
(C fromElement, boolean inclusive) (package private) abstract ImmutableSortedSet
<E> ImmutableSortedSet.tailSetImpl
(E fromElement, boolean inclusive) (package private) ImmutableSortedSet
<E> RegularImmutableSortedSet.tailSetImpl
(E fromElement, boolean inclusive) final ImmutableSortedSet
<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.Methods in com.google.common.collect that return types with arguments of type ImmutableSortedSetModifier and TypeMethodDescription(package private) static <E> Collector
<E, ?, ImmutableSortedSet<E>> CollectCollectors.toImmutableSortedSet
(Comparator<? super E> comparator) static <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.Constructors in com.google.common.collect with parameters of type ImmutableSortedSetModifierConstructorDescription(package private)
DescendingImmutableSortedSet
(ImmutableSortedSet<E> forward) (package private)
ImmutableSortedAsList
(ImmutableSortedSet<E> backingSet, ImmutableList<E> backingList) -
Uses of ImmutableSortedSet in com.google.common.testing
Methods in com.google.common.testing that return ImmutableSortedSetModifier and TypeMethodDescription(package private) static <E extends Comparable<? super E>>
ImmutableSortedSet<E> FreshValueGenerator.generateImmutableSortedSet
(E freshElement)
Comparable
to usecopyOf(Comparable[])
.