Uses of Interface
com.google.common.collect.Multimap

Packages that use Multimap
com.google.common.collect This package contains generic collection interfaces and implementations, and other utilities for working with collections. 
 

Uses of Multimap in com.google.common.collect
 

Subinterfaces of Multimap in com.google.common.collect
 interface ListMultimap<K,V>
          A Multimap that can hold duplicate key-value pairs and that maintains the insertion ordering of values for a given key.
 interface SetMultimap<K,V>
          A Multimap that cannot hold duplicate key-value pairs.
 interface SortedSetMultimap<K,V>
          A SetMultimap whose set of values for a given key are kept sorted; that is, they comprise a SortedSet.
 

Classes in com.google.common.collect that implement Multimap
 class ArrayListMultimap<K,V>
          Implementation of Multimap that uses an ArrayList to store the values for a given key.
 class ForwardingMultimap<K,V>
          A multimap which forwards all its method calls to another multimap.
 class HashMultimap<K,V>
          Implementation of Multimap using hash tables.
 class ImmutableMultimap<K,V>
          An immutable ListMultimap with reliable user-specified key and value iteration order.
 class LinkedHashMultimap<K,V>
          Implementation of Multimap that does not allow duplicate key-value entries and that returns collections whose iterators follow the ordering in which the data was added to the multimap.
 class TreeMultimap<K,V>
          Implementation of Multimap whose keys and values are ordered by their natural ordering or by supplied comparators.
 

Methods in com.google.common.collect that return Multimap
static
<K,V> Multimap<K,V>
MapConstraints.constrainedMultimap(Multimap<K,V> multimap, MapConstraint<? super K,? super V> constraint)
          Returns a constrained view of the specified multimap, using the specified constraint.
protected abstract  Multimap<K,V> ForwardingMultimap.delegate()
           
static
<K,V> Multimap<K,V>
Multimaps.newMultimap(java.util.Map<K,java.util.Collection<V>> map, Supplier<? extends java.util.Collection<V>> factory)
          Creates a new Multimap that uses the provided map and factory.
static
<K,V> Multimap<K,V>
Multimaps.synchronizedMultimap(Multimap<K,V> multimap)
          Returns a synchronized (thread-safe) multimap backed by the specified multimap.
static
<K,V> Multimap<K,V>
Multimaps.unmodifiableMultimap(Multimap<K,V> delegate)
          Returns an unmodifiable view of the specified multimap.
 

Methods in com.google.common.collect with parameters of type Multimap
static
<K,V> Multimap<K,V>
MapConstraints.constrainedMultimap(Multimap<K,V> multimap, MapConstraint<? super K,? super V> constraint)
          Returns a constrained view of the specified multimap, using the specified constraint.
static
<K,V> ImmutableMultimap<K,V>
ImmutableMultimap.copyOf(Multimap<? extends K,? extends V> multimap)
          Returns an immutable multimap containing the same mappings as multimap.
static
<K,V> void
Multimaps.index(java.lang.Iterable<? extends V> values, Function<? super V,? extends K> keyFunction, Multimap<K,V> multimap)
          Indexes the specified values into a Multimap by applying a specified function to each item in an Iterable of values.
static
<K,V> ArrayListMultimap<V,K>
Multimaps.inverseArrayListMultimap(Multimap<K,V> multimap)
          Creates an ArrayListMultimap that's the inverse of the provided multimap.
static
<K,V> HashMultimap<V,K>
Multimaps.inverseHashMultimap(Multimap<K,V> multimap)
          Creates a HashMultimap that's the inverse of the provided multimap.
static
<K extends java.lang.Comparable,V extends java.lang.Comparable>
TreeMultimap<V,K>
Multimaps.inverseTreeMultimap(Multimap<K,V> multimap)
          Creates a TreeMultimap that's the inverse of the provided multimap.
static
<K,V> ArrayListMultimap<K,V>
Multimaps.newArrayListMultimap(Multimap<? extends K,? extends V> multimap)
          Creates an ArrayListMultimap instance initialized with all elements from the supplied Multimap.
static
<K,V> HashMultimap<K,V>
Multimaps.newHashMultimap(Multimap<? extends K,? extends V> multimap)
          Creates a HashMultimap instance initialized with all elements from the supplied Multimap.
static
<K,V> LinkedHashMultimap<K,V>
Multimaps.newLinkedHashMultimap(Multimap<? extends K,? extends V> multimap)
          Creates a LinkedHashMultimap instance initialized with all elements from the supplied Multimap.
static
<K,V> TreeMultimap<K,V>
Multimaps.newTreeMultimap(java.util.Comparator<? super K> keyComparator, java.util.Comparator<? super V> valueComparator, Multimap<? extends K,? extends V> multimap)
          Creates a TreeMultimap instance using explicit comparators, initialized with all elements from the supplied Multimap.
static
<K,V> TreeMultimap<K,V>
Multimaps.newTreeMultimap(Multimap<? extends K,? extends V> multimap)
          Constructs a TreeMultimap with the same mappings as the specified Multimap.
static
<K,V> void
Serialization.populateMultimap(Multimap<K,V> multimap, java.io.ObjectInputStream stream)
          Populates a multimap by reading an input stream, as part of deserialization.
 boolean ImmutableMultimap.putAll(Multimap<? extends K,? extends V> multimap)
          Guaranteed to throw an exception and leave the multimap unmodified.
 boolean ForwardingMultimap.putAll(Multimap<? extends K,? extends V> multimap)
           
 boolean Multimap.putAll(Multimap<? extends K,? extends V> multimap)
          Copies all of another multimap's key-value pairs into this multimap.
static
<K,V> Multimap<K,V>
Multimaps.synchronizedMultimap(Multimap<K,V> multimap)
          Returns a synchronized (thread-safe) multimap backed by the specified multimap.
static
<K,V> Multimap<K,V>
Multimaps.unmodifiableMultimap(Multimap<K,V> delegate)
          Returns an unmodifiable view of the specified multimap.
static
<K,V> void
Serialization.writeMultimap(Multimap<K,V> multimap, java.io.ObjectOutputStream stream)
          Stores the contents of a multimap in an output stream, as part of serialization.
 

Constructors in com.google.common.collect with parameters of type Multimap
ArrayListMultimap(Multimap<? extends K,? extends V> multimap)
          Constructs an ArrayListMultimap with the same mappings as the specified Multimap.
HashMultimap(Multimap<? extends K,? extends V> multimap)
          Constructs a HashMultimap with the same mappings as the specified Multimap.
LinkedHashMultimap(Multimap<? extends K,? extends V> multimap)
          Constructs a LinkedHashMultimap with the same mappings as the specified Multimap.
TreeMultimap(java.util.Comparator<? super K> keyComparator, java.util.Comparator<? super V> valueComparator, Multimap<? extends K,? extends V> multimap)
          Constructs a TreeMultimap with explicit comparators and the same mappings as the specified multimap.
TreeMultimap(Multimap<? extends K,? extends V> multimap)
          Constructs a TreeMultimap with the same mappings as the specified multimap.
 



Copyright © 2007-2008 Google. All Rights Reserved.