Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
com.google.common.testing |
This package contains testing utilities.
|
Modifier and Type | Class and Description |
---|---|
class |
ContiguousSet<C extends java.lang.Comparable>
A sorted set of contiguous values in a given
DiscreteDomain . |
(package private) class |
DescendingImmutableSortedSet<E>
Skeletal implementation of
descendingSet() . |
(package private) class |
EmptyContiguousSet<C extends java.lang.Comparable>
An empty contiguous set.
|
private class |
ImmutableRangeSet.AsSet |
(package private) class |
RegularContiguousSet<C extends java.lang.Comparable>
An implementation of
ContiguousSet that contains one or more elements. |
(package private) class |
RegularImmutableSortedSet<E>
An immutable sorted set with one or more elements.
|
Modifier and Type | Field and Description |
---|---|
(package private) ImmutableSortedSet<E> |
ImmutableSortedSet.descendingSet |
private ImmutableSortedSet<E> |
DescendingImmutableSortedSet.forward |
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. |
(package private) static <E> ImmutableSortedSet<E> |
ImmutableSortedSet.construct(java.util.Comparator<? super E> comparator,
int n,
E... contents)
Constructs an
ImmutableSortedSet from the first n elements of contents . |
static <E> ImmutableSortedSet<E> |
ImmutableSortedSet.copyOf(java.util.Collection<? extends E> elements)
Returns an immutable sorted set containing the given elements sorted by their natural ordering.
|
static <E> ImmutableSortedSet<E> |
ImmutableSortedSet.copyOf(java.util.Comparator<? super E> comparator,
java.util.Collection<? extends E> elements)
Returns an immutable sorted set containing the given elements sorted by the given
Comparator . |
static <E> ImmutableSortedSet<E> |
ImmutableSortedSet.copyOf(java.util.Comparator<? super E> comparator,
java.lang.Iterable<? extends E> elements)
Returns an immutable sorted set containing the given elements sorted by the given
Comparator . |
static <E> ImmutableSortedSet<E> |
ImmutableSortedSet.copyOf(java.util.Comparator<? super E> comparator,
java.util.Iterator<? extends E> elements)
Returns an immutable sorted set containing the given elements sorted by the given
Comparator . |
static <E> ImmutableSortedSet<E> |
ImmutableSortedSetFauxverideShim.copyOf(E[] elements)
Deprecated.
Pass parameters of type
Comparable to use copyOf(Comparable[]) . |
static <E extends java.lang.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(java.lang.Iterable<? extends E> elements)
Returns an immutable sorted set containing the given elements sorted by their natural ordering.
|
static <E> ImmutableSortedSet<E> |
ImmutableSortedSet.copyOf(java.util.Iterator<? extends E> elements)
Returns an immutable sorted set containing the given elements sorted by their natural ordering.
|
static <E> ImmutableSortedSet<E> |
ImmutableSortedSet.copyOfSorted(java.util.SortedSet<E> sortedSet)
Returns an immutable sorted set containing the elements of a sorted set, sorted by the same
Comparator . |
(package private) ImmutableSortedSet<E> |
RegularImmutableSortedSet.createDescendingSet() |
(package private) abstract ImmutableSortedSet<E> |
ImmutableSortedSet.createDescendingSet() |
(package private) ImmutableSortedSet<C> |
ImmutableRangeSet.AsSet.createDescendingSet() |
(package private) ImmutableSortedSet<C> |
EmptyContiguousSet.createDescendingSet() |
(package private) ImmutableSortedSet<E> |
DescendingImmutableSortedSet.createDescendingSet() |
(package private) ImmutableSortedSet<C> |
ContiguousSet.createDescendingSet() |
(package private) ImmutableSortedSet<E> |
ImmutableSortedAsList.delegateCollection() |
ImmutableSortedSet<K> |
ImmutableSortedMap.descendingKeySet() |
ImmutableSortedSet<E> |
ImmutableSortedSet.descendingSet() |
ImmutableSortedSet<E> |
DescendingImmutableSortedSet.descendingSet() |
ImmutableSortedSet<E> |
RegularImmutableSortedMultiset.elementSet() |
abstract ImmutableSortedSet<E> |
ImmutableSortedMultiset.elementSet() |
ImmutableSortedSet<E> |
DescendingImmutableSortedMultiset.elementSet() |
ImmutableSortedSet<E> |
ImmutableSortedSet.headSet(E toElement) |
ImmutableSortedSet<E> |
ImmutableSortedSet.headSet(E toElement,
boolean inclusive) |
(package private) ImmutableSortedSet<C> |
ImmutableRangeSet.AsSet.headSetImpl(C toElement,
boolean inclusive) |
(package private) ImmutableSortedSet<E> |
RegularImmutableSortedSet.headSetImpl(E toElement,
boolean inclusive) |
(package private) abstract ImmutableSortedSet<E> |
ImmutableSortedSet.headSetImpl(E toElement,
boolean inclusive) |
(package private) ImmutableSortedSet<E> |
DescendingImmutableSortedSet.headSetImpl(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> ImmutableSortedSet<E> |
ImmutableSortedSetFauxverideShim.of(E element)
Deprecated.
Pass a parameter of type
Comparable to use of(Comparable) . |
static <E extends java.lang.Comparable<? super E>> |
ImmutableSortedSet.of(E element)
Returns an immutable sorted set containing a single element.
|
static <E> ImmutableSortedSet<E> |
ImmutableSortedSetFauxverideShim.of(E e1,
E e2)
Deprecated.
Pass the parameters of type
Comparable to use of(Comparable, Comparable) . |
static <E extends java.lang.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> ImmutableSortedSet<E> |
ImmutableSortedSetFauxverideShim.of(E e1,
E e2,
E e3)
Deprecated.
Pass the parameters of type
Comparable to use of(Comparable, Comparable, Comparable) . |
static <E extends java.lang.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> ImmutableSortedSet<E> |
ImmutableSortedSetFauxverideShim.of(E e1,
E e2,
E e3,
E e4)
Deprecated.
Pass the parameters of type
Comparable to use of(Comparable, Comparable, Comparable, Comparable) . |
static <E extends java.lang.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> ImmutableSortedSet<E> |
ImmutableSortedSetFauxverideShim.of(E e1,
E e2,
E e3,
E e4,
E e5)
Deprecated.
Pass the parameters of type
Comparable to use of( Comparable, Comparable, Comparable, Comparable, Comparable) . |
static <E extends java.lang.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> ImmutableSortedSet<E> |
ImmutableSortedSetFauxverideShim.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E... remaining)
Deprecated.
Pass the parameters of type
Comparable to use of(Comparable, Comparable, Comparable, Comparable, Comparable,
Comparable, Comparable...) . |
static <E extends java.lang.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) |
(package private) ImmutableSortedSet<C> |
ImmutableRangeSet.AsSet.subSet(Range<C> range) |
(package private) ImmutableSortedSet<C> |
ImmutableRangeSet.AsSet.subSetImpl(C fromElement,
boolean fromInclusive,
C toElement,
boolean toInclusive) |
(package private) ImmutableSortedSet<E> |
RegularImmutableSortedSet.subSetImpl(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
(package private) abstract ImmutableSortedSet<E> |
ImmutableSortedSet.subSetImpl(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
(package private) ImmutableSortedSet<E> |
DescendingImmutableSortedSet.subSetImpl(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
ImmutableSortedSet<E> |
ImmutableSortedSet.tailSet(E fromElement) |
ImmutableSortedSet<E> |
ImmutableSortedSet.tailSet(E fromElement,
boolean inclusive) |
(package private) ImmutableSortedSet<C> |
ImmutableRangeSet.AsSet.tailSetImpl(C fromElement,
boolean inclusive) |
(package private) ImmutableSortedSet<E> |
RegularImmutableSortedSet.tailSetImpl(E fromElement,
boolean inclusive) |
(package private) abstract ImmutableSortedSet<E> |
ImmutableSortedSet.tailSetImpl(E fromElement,
boolean inclusive) |
(package private) ImmutableSortedSet<E> |
DescendingImmutableSortedSet.tailSetImpl(E fromElement,
boolean inclusive) |
ImmutableSortedSet<E> |
FluentIterable.toSortedSet(java.util.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> java.util.stream.Collector<E,?,ImmutableSortedSet<E>> |
ImmutableSortedSet.toImmutableSortedSet(java.util.Comparator<? super E> comparator)
Returns a
Collector that accumulates the input elements into a new ImmutableSortedSet , ordered by the specified comparator. |
(package private) static <E> java.util.stream.Collector<E,?,ImmutableSortedSet<E>> |
CollectCollectors.toImmutableSortedSet(java.util.Comparator<? super E> comparator) |
Constructor and Description |
---|
DescendingImmutableSortedSet(ImmutableSortedSet<E> forward) |
ImmutableSortedAsList(ImmutableSortedSet<E> backingSet,
ImmutableList<E> backingList) |
Modifier and Type | Method and Description |
---|---|
(package private) static <E extends java.lang.Comparable<? super E>> |
FreshValueGenerator.generateImmutableSortedSet(E freshElement) |