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 |
ImmutableSortedSet<E>
An immutable
SortedSet that stores its elements in a sorted array. |
Modifier and Type | Method and Description |
---|---|
ImmutableSet<E> |
ImmutableSet.Builder.build()
Returns a newly-created
ImmutableSet based on the contents of
the Builder . |
static <E> ImmutableSet<E> |
ImmutableSet.copyOf(Collection<? extends E> elements)
Returns an immutable set containing the given elements, in order.
|
static <E> ImmutableSet<E> |
ImmutableSet.copyOf(E[] elements)
Returns an immutable set containing the given elements, in order.
|
static <E> ImmutableSet<E> |
ImmutableSet.copyOf(Iterable<? extends E> elements)
Returns an immutable set containing the given elements, in order.
|
static <E> ImmutableSet<E> |
ImmutableSet.copyOf(Iterator<? extends E> elements)
Returns an immutable set containing the given elements, in order.
|
ImmutableSet<Map.Entry<K,V>> |
ImmutableSetMultimap.entries()
Returns an immutable collection of all key-value pairs in the multimap.
|
ImmutableSet<Map.Entry<K,V>> |
ImmutableBiMap.entrySet() |
ImmutableSet<Map.Entry<K,V>> |
ImmutableSortedMap.entrySet()
Returns an immutable set of the mappings in this map, sorted by the key
ordering.
|
abstract ImmutableSet<Map.Entry<K,V>> |
ImmutableMap.entrySet()
Returns an immutable set of the mappings in this map.
|
ImmutableSet<V> |
ImmutableSetMultimap.get(K key)
Returns an immutable set of the values for the given key.
|
ImmutableSet<E> |
Sets.SetView.immutableCopy()
Returns an immutable copy of the current contents of this set view.
|
static <E extends Enum<E>> |
Sets.immutableEnumSet(E anElement,
E... otherElements)
Returns an immutable set instance containing the given enum elements.
|
static <E extends Enum<E>> |
Sets.immutableEnumSet(Iterable<E> elements)
Returns an immutable set instance containing the given enum elements.
|
ImmutableSet<K> |
ImmutableBiMap.keySet() |
ImmutableSet<K> |
ImmutableMultimap.keySet()
Returns an immutable set of the distinct keys in this multimap.
|
abstract ImmutableSet<K> |
ImmutableMap.keySet()
Returns an immutable set of the keys in this map.
|
static <E> ImmutableSet<E> |
ImmutableSet.of()
Returns the empty immutable set.
|
static <E> ImmutableSet<E> |
ImmutableSet.of(E element)
Returns an immutable set containing a single element.
|
static <E> ImmutableSet<E> |
ImmutableSet.of(E[] elements)
Deprecated.
use
copyOf(Object[]) . This method is scheduled for
deletion in October 2011. |
static <E> ImmutableSet<E> |
ImmutableSet.of(E e1,
E e2)
Returns an immutable set containing the given elements, in order.
|
static <E> ImmutableSet<E> |
ImmutableSet.of(E e1,
E e2,
E e3)
Returns an immutable set containing the given elements, in order.
|
static <E> ImmutableSet<E> |
ImmutableSet.of(E e1,
E e2,
E e3,
E e4)
Returns an immutable set containing the given elements, in order.
|
static <E> ImmutableSet<E> |
ImmutableSet.of(E e1,
E e2,
E e3,
E e4,
E e5)
Returns an immutable set containing the given elements, in order.
|
static <E> ImmutableSet<E> |
ImmutableSet.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E... others)
Returns an immutable set containing the given elements, in order.
|
ImmutableSet<V> |
ImmutableSetMultimap.removeAll(Object key)
Guaranteed to throw an exception and leave the multimap unmodified.
|
ImmutableSet<V> |
ImmutableSetMultimap.replaceValues(K key,
Iterable<? extends V> values)
Guaranteed to throw an exception and leave the multimap unmodified.
|
ImmutableSet<V> |
ImmutableBiMap.values()
Returns an immutable set of the values in this map.
|
Copyright © 2010-2012. All Rights Reserved.