Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
Modifier and Type | Class and Description |
---|---|
class |
ContiguousSet<C extends Comparable>
A sorted set of contiguous values in a given
DiscreteDomain . |
Modifier and Type | Method and Description |
---|---|
ImmutableSortedSet<C> |
ImmutableRangeSet.asSet(DiscreteDomain<C> domain)
Returns an
ImmutableSortedSet containing the same values in the given domain
contained by this range set. |
ImmutableSortedSet<E> |
ImmutableSortedSet.Builder.build()
Returns a newly-created
ImmutableSortedSet based on the contents of the Builder and its comparator. |
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,
Collection<? extends E> elements)
Returns an immutable sorted set containing the given elements sorted by the given
Comparator . |
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 given
Comparator . |
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 given
Comparator . |
static <E extends Comparable<? super E>> |
ImmutableSortedSet.copyOf(E[] elements)
Returns an immutable sorted set containing the given elements sorted by their natural ordering.
|
static <E> ImmutableSortedSet<E> |
ImmutableSortedSet.copyOf(Iterable<? extends E> elements)
Returns an immutable sorted set containing the given elements sorted by their natural ordering.
|
static <E> ImmutableSortedSet<E> |
ImmutableSortedSet.copyOf(Iterator<? extends E> elements)
Returns an immutable sorted set containing the given elements sorted by their natural ordering.
|
static <E> ImmutableSortedSet<E> |
ImmutableSortedSet.copyOfSorted(SortedSet<E> sortedSet)
Returns an immutable sorted set containing the elements of a sorted set, sorted by the same
Comparator . |
ImmutableSortedSet<K> |
ImmutableSortedMap.descendingKeySet() |
ImmutableSortedSet<E> |
ImmutableSortedSet.descendingSet() |
abstract ImmutableSortedSet<E> |
ImmutableSortedMultiset.elementSet() |
ImmutableSortedSet<E> |
ImmutableSortedSet.headSet(E toElement)
Returns a view of the portion of this set whose elements are
strictly less than toElement.
|
ImmutableSortedSet<E> |
ImmutableSortedSet.headSet(E toElement,
boolean inclusive) |
ImmutableSortedSet<K> |
ImmutableSortedMap.keySet()
Returns an immutable sorted set of the keys in this map.
|
ImmutableSortedSet<K> |
ImmutableSortedMap.navigableKeySet() |
static <E> ImmutableSortedSet<E> |
ImmutableSortedSet.of()
Returns the empty immutable sorted set.
|
static <E extends Comparable<? super E>> |
ImmutableSortedSet.of(E element)
Returns an immutable sorted set containing a single element.
|
static <E extends Comparable<? super E>> |
ImmutableSortedSet.of(E e1,
E e2)
Returns an immutable sorted set containing the given elements sorted by their natural ordering.
|
static <E extends Comparable<? super 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 extends Comparable<? super 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 extends Comparable<? super 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 extends Comparable<? super 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.
|
ImmutableSortedSet<E> |
ImmutableSortedSet.subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
ImmutableSortedSet<E> |
ImmutableSortedSet.subSet(E fromElement,
E toElement)
Returns a view of the portion of this set whose elements range
from fromElement, inclusive, to toElement,
exclusive.
|
ImmutableSortedSet<E> |
ImmutableSortedSet.tailSet(E fromElement)
Returns a view of the portion of this set whose elements are
greater than or equal to fromElement.
|
ImmutableSortedSet<E> |
ImmutableSortedSet.tailSet(E fromElement,
boolean inclusive) |
ImmutableSortedSet<E> |
FluentIterable.toSortedSet(Comparator<? super E> comparator)
Returns an
ImmutableSortedSet containing all of the elements from this FluentIterable in the order specified by comparator , with duplicates (determined by
comparator.compare(x, y) == 0 ) removed. |
Modifier and Type | Method and Description |
---|---|
static <E> Collector<E,?,ImmutableSortedSet<E>> |
ImmutableSortedSet.toImmutableSortedSet(Comparator<? super E> comparator)
Returns a
Collector that accumulates the input elements into a new ImmutableSortedSet , ordered by the specified comparator. |
Copyright © 2010–2019. All rights reserved.