@ParametersAreNonnullByDefault
Package com.google.common.collect
This package contains generic collection interfaces and implementations, and
other utilities for working with collections. It is a part of the open-source
Guava libraries.
of
of
of
of
of
of
of
of
Collection Types
BiMap
- An extension of
Map
that guarantees the uniqueness of its values as well as that of its keys. This is sometimes called an "invertible map," since the restriction on values enables it to support an inverse view -- which is another instance ofBiMap
. Multiset
- An extension of
Collection
that may contain duplicate values like aList
, yet has order-independent equality like aSet
. One typical use for a multiset is to represent a histogram. Multimap
- A new type, which is similar to
Map
, but may contain multiple entries with the same key. Some behaviors ofMultimap
are left unspecified and are provided only by the subtypes mentioned below. ListMultimap
- An extension of
Multimap
which permits duplicate entries, supports random access of values for a particular key, and has partially order-dependent equality as defined byListMultimap.equals(Object)
.ListMultimap
takes its name from the fact that the collection of values associated with a given key fulfills theList
contract. SetMultimap
- An extension of
Multimap
which has order-independent equality and does not allow duplicate entries; that is, while a key may appear twice in aSetMultimap
, each must map to a different value.SetMultimap
takes its name from the fact that the collection of values associated with a given key fulfills theSet
contract. SortedSetMultimap
- An extension of
SetMultimap
for which the collection values associated with a given key is aSortedSet
. Table
- A new type, which is similar to
Map
, but which indexes its values by an ordered pair of keys, a row key and column key. ClassToInstanceMap
- An extension of
Map
that associates a raw type with an instance of that type.
Collection Implementations
of List
of Set
ImmutableSet
ImmutableSortedSet
ContiguousSet
(seeRange
)
of Map
of BiMap
of Multiset
of Multimap
ImmutableMultimap
ImmutableListMultimap
ImmutableSetMultimap
ArrayListMultimap
HashMultimap
TreeMultimap
LinkedHashMultimap
LinkedListMultimap
of Table
of ClassToInstanceMap
Classes of static utility methods
Comparison
Abstract implementations
AbstractIterator
AbstractSequentialIterator
ImmutableCollection
UnmodifiableIterator
UnmodifiableListIterator
Ranges
Other
Interner
,Interners
Constraint
,Constraints
MapConstraint
,MapConstraints
MapDifference
,SortedMapDifference
MinMaxPriorityQueue
PeekingIterator
Forwarding collections
ForwardingCollection
ForwardingConcurrentMap
ForwardingIterator
ForwardingList
ForwardingListIterator
ForwardingListMultimap
ForwardingMap
ForwardingMapEntry
ForwardingMultimap
ForwardingMultiset
ForwardingNavigableMap
ForwardingNavigableSet
ForwardingObject
ForwardingQueue
ForwardingSet
ForwardingSetMultimap
ForwardingSortedMap
ForwardingSortedMultiset
ForwardingSortedSet
ForwardingSortedSetMultimap
ForwardingTable
-
Interface Summary Interface Description BiMap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ClassToInstanceMap<B> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Constraint<E> Deprecated. UsePreconditions
for basic checks.Interner<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ListMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023MapConstraint<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023MapDifference<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023MapDifference.ValueDifference<V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Maps.EntryTransformer<K,V1,V2> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Multimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Multiset<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Multiset.Entry<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023PeekingIterator<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023RangeMap<K extends java.lang.Comparable,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023RangeSet<C extends java.lang.Comparable> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023RowSortedTable<R,C,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023SetMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023SortedMapDifference<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023SortedMultiset<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023SortedSetMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Table<R,C,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Table.Cell<R,C,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023 -
Class Summary Class Description AbstractIterator<T> Deprecated. AbstractSequentialIterator<T> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ArrayListMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ArrayTable<R,C,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023BinaryTreeTraverser<T> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Collections2 Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ComparisonChain Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ConcurrentHashMultiset<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Constraints Deprecated. UsePreconditions
for basic checks.ContiguousSet<C extends java.lang.Comparable> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023DiscreteDomain<C extends java.lang.Comparable> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023EnumBiMap<K extends java.lang.Enum<K>,V extends java.lang.Enum<V>> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023EnumHashBiMap<K extends java.lang.Enum<K>,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023EnumMultiset<E extends java.lang.Enum<E>> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023EvictingQueue<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023FluentIterable<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingBlockingDeque<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingCollection<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingConcurrentMap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingDeque<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingIterator<T> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingList<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingListIterator<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingListMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingMap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingMapEntry<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingMultiset<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingNavigableMap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingNavigableSet<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingObject Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingQueue<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingSet<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingSetMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingSortedMap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingSortedMultiset<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingSortedSet<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingSortedSetMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ForwardingTable<R,C,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023GenericMapMaker<K0,V0> Deprecated. This class existed only to support the generic paramterization necessary for the caching functionality inMapMaker
.HashBasedTable<R,C,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023HashBiMap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023HashMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023HashMultiset<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableBiMap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableBiMap.Builder<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableClassToInstanceMap<B> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableClassToInstanceMap.Builder<B> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableCollection<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableCollection.Builder<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableList<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableList.Builder<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableListMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableListMultimap.Builder<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableMap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableMap.Builder<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableMultimap.Builder<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableMultiset<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableMultiset.Builder<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableRangeMap<K extends java.lang.Comparable<?>,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableRangeMap.Builder<K extends java.lang.Comparable<?>,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableRangeSet<C extends java.lang.Comparable> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableRangeSet.Builder<C extends java.lang.Comparable<?>> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableSet<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableSet.Builder<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableSetMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableSetMultimap.Builder<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableSortedMap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableSortedMap.Builder<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableSortedMultiset<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableSortedMultiset.Builder<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableSortedSet<E> Deprecated. ImmutableSortedSet.Builder<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableTable<R,C,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ImmutableTable.Builder<R,C,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Interners Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Iterables Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Iterators Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023LinkedHashMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023LinkedHashMultiset<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023LinkedListMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Lists Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023MapConstraints Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023MapMaker Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Maps Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023MinMaxPriorityQueue<E> Deprecated. MinMaxPriorityQueue.Builder<B> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Multimaps Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Multisets Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023MutableClassToInstanceMap<B> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023ObjectArrays Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Ordering<T> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Queues Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Range<C extends java.lang.Comparable> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Sets Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Sets.SetView<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Tables Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023TreeBasedTable<R,C,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023TreeMultimap<K,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023TreeMultiset<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023TreeRangeMap<K extends java.lang.Comparable,V> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023TreeRangeSet<C extends java.lang.Comparable<?>> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023TreeTraverser<T> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023UnmodifiableIterator<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023UnmodifiableListIterator<E> Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023 -
Enum Summary Enum Description BoundType Indicates whether an endpoint of some range is contained in the range itself ("closed") or not ("open"). -
Exception Summary Exception Description ComputationException Deprecated. The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023