Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
Modifier and Type | Method and Description |
---|---|
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<E> |
ImmutableSortedSet.headSet(E toElement) |
ImmutableSortedSet<K> |
ImmutableSortedMap.keySet()
Returns an immutable sorted set of the keys in this map.
|
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[] elements)
Deprecated.
use
copyOf(Comparable[]) . This method is scheduled
for deletion in October 2011. |
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,
E toElement) |
ImmutableSortedSet<E> |
ImmutableSortedSet.tailSet(E fromElement) |
static <E> ImmutableSortedSet<E> |
ImmutableSortedSet.withExplicitOrder(E firstElement,
E... remainingElementsInOrder)
Deprecated.
If the provided elements are already in their natural order,
of() will produce a set with the same elements in the same
order. If the elements are arranged according to another Comparator , use orderedBy(Comparator) . Otherwise, use ImmutableSet , which maintains insertion order for inputs that are
ordered but not sorted. This method is scheduled for deletion in Guava
release 10. |
static <E> ImmutableSortedSet<E> |
ImmutableSortedSet.withExplicitOrder(List<E> elements)
Deprecated.
If the provided elements are already in their natural order,
copyOf(Iterable) will produce a set with the same elements in
the same order. If the elements are arranged according to another
Comparator , use orderedBy(Comparator) . Otherwise, use
ImmutableSet , which maintains insertion order for inputs that
are ordered but not sorted. This method is scheduled for deletion in
Guava release 10. |