Uses of Class
com.google.common.collect.ImmutableSortedSet
Packages that use ImmutableSortedSet
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ImmutableSortedSet in com.google.common.collect
Subclasses of ImmutableSortedSet in com.google.common.collectModifier and TypeClassDescriptionclassContiguousSet<C extends Comparable>A sorted set of contiguous values in a givenDiscreteDomain.Methods in com.google.common.collect that return ImmutableSortedSetModifier and TypeMethodDescriptionImmutableRangeSet.asSet(DiscreteDomain<C> domain) Returns anImmutableSortedSetcontaining the same values in the given domain contained by this range set.ImmutableSortedSet.Builder.build()Returns a newly-createdImmutableSortedSetbased on the contents of theBuilderand 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 typeComparableto 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 typeComparableto 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 typeComparableto 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 typeComparableto 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 typeComparableto 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 typeComparableto useof(Comparable, Comparable, Comparable, Comparable, Comparable, Comparable, Comparable...).final ImmutableSortedSet<@NonNull E> FluentIterable.toSortedSet(Comparator<? super E> comparator) Returns anImmutableSortedSetcontaining all of the elements from thisFluentIterablein 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 TypeMethodDescriptionstatic <E> Collector<E, ?, ImmutableSortedSet<E>> ImmutableSortedSet.toImmutableSortedSet(Comparator<? super E> comparator) Returns aCollectorthat accumulates the input elements into a newImmutableSortedSet, ordered by the specified comparator.
Comparableto usecopyOf(Comparable[]).