/external/guava/src/com/google/common/collect/ |
Multimap.java | 30 * but different values, the multimap contains mappings from the key to both 35 * multimap. If the multimap is modifiable, updating it can change the contents 36 * of those collections, and updating the collections will change the multimap. 38 * that are independent of subsequent multimap changes. 40 * <p>Depending on the implementation, a multimap may or may not allow duplicate 41 * key-value pairs. In other words, the multimap contents after adding the same 43 * duplicates, the multimap will contain two mappings, and {@code get} will 45 * supporting duplicates, the multimap will contain a single mapping from the 49 * <p>All methods that alter the multimap are optional, and the views returne [all...] |
ImmutableMultimap.java | 32 * An immutable {@link Multimap}. Does not permit null keys or values. 34 * <p>Unlike {@link Multimaps#unmodifiableMultimap(Multimap)}, which is 35 * a <i>view</i> of a separate multimap which can still change, an instance of 39 * you easily make a "defensive copy" of a multimap provided to your class by 51 implements Multimap<K, V>, Serializable { 53 /** Returns an empty multimap. */ 59 * Returns an immutable multimap containing a single entry. 66 * Returns an immutable multimap containing the given entries, in order. 73 * Returns an immutable multimap containing the given entries, in order. 81 * Returns an immutable multimap containing the given entries, in order 406 final ImmutableMultimap<K, V> multimap; field in class:ImmutableMultimap.EntryCollection 487 final Multimap<?, V> multimap; field in class:Values [all...] |
ImmutableListMultimap.java | 35 * a <i>view</i> of a separate multimap which can still change, an instance of 39 * you easily make a "defensive copy" of a multimap provided to your class by 54 /** Returns the empty multimap. */ 55 // Casting is safe because the multimap will never hold any elements. 64 * Returns an immutable multimap containing a single entry. 74 * Returns an immutable multimap containing the given entries, in order. 85 * Returns an immutable multimap containing the given entries, in order. 98 * Returns an immutable multimap containing the given entries, in order. 112 * Returns an immutable multimap containing the given entries, in order. 141 * static final Multimap<String, Integer> STRING_TO_INTEGER_MULTIMAP [all...] |
Multimaps.java | 48 * Provides static methods acting on or generating a {@code Multimap}. 60 * Creates a new {@code Multimap} that uses the provided map and factory. It 61 * can generate a multimap based on arbitrary {@link Map} and 65 * multimap iteration order. They also specify the behavior of the 67 * multimap and its returned views. However, the multimap's {@code get} 71 * <p>The multimap is serializable if {@code map}, {@code factory}, the 72 * collections generated by {@code factory}, and the multimap contents are all 75 * <p>The multimap is not threadsafe when any concurrent operations update the 76 * multimap, even if {@code map} and the instances generated b [all...] |
SortedSetMultimap.java | 32 * key-value pairs; adding a key-value pair that's already in the multimap has 33 * no effect. This interface does not specify the ordering of the multimap's 37 * each return a {@link SortedSet} of values, while {@link Multimap#entries()} 49 * mappings in the multimap have the provided key, an empty collection is 52 * <p>Changes to the returned collection will update the underlying multimap, 57 * {@link java.util.Collection} specified in the {@link Multimap} interface. 66 * {@link java.util.Collection} specified in the {@link Multimap} interface. 76 * {@link java.util.Collection} specified in the {@link Multimap} interface. 78 * <p>Any duplicates in {@code values} will be stored in the multimap once. 84 * in the multimap. Changes to the returned map, such as element removal [all...] |
ArrayListMultimap.java | 34 * Implementation of {@code Multimap} that uses an {@code ArrayList} to store 42 * <p>This multimap allows duplicate key-value pairs. After adding a new 47 * <p>Keys and values may be null. All optional multimap methods are supported, 54 * multimap. Concurrent read operations will work correctly. To allow concurrent 55 * update operations, wrap your multimap with a call to {@link 92 * specified multimap. 94 * @param multimap the multimap whose contents are copied to this multimap 97 Multimap<? extends K, ? extends V> multimap) [all...] |
HashMultimap.java | 32 * Implementation of {@link Multimap} using hash tables. 34 * <p>The multimap does not store duplicate key-value pairs. Adding a new 37 * <p>Keys and values may be null. All optional multimap methods are supported, 41 * multimap. Concurrent read operations will work correctly. To allow concurrent 42 * update operations, wrap your multimap with a call to {@link 79 * multimap. If a key-value mapping appears multiple times in the input 80 * multimap, it only appears once in the constructed multimap. 82 * @param multimap the multimap whose contents are copied to this multima [all...] |
ImmutableSetMultimap.java | 38 * a <i>view</i> of a separate multimap which can still change, an instance of 42 * you easily make a "defensive copy" of a multimap provided to your class by 57 /** Returns the empty multimap. */ 58 // Casting is safe because the multimap will never hold any elements. 67 * Returns an immutable multimap containing a single entry. 76 * Returns an immutable multimap containing the given entries, in order. 88 * Returns an immutable multimap containing the given entries, in order. 102 * Returns an immutable multimap containing the given entries, in order. 117 * Returns an immutable multimap containing the given entries, in order. 142 * Multimap for {@link ImmutableSetMultimap.Builder} that maintains ke [all...] |
LinkedHashMultimap.java | 36 * Implementation of {@code Multimap} that does not allow duplicate key-value 38 * which the data was added to the multimap. 42 * multimap. Similarly, {@code get}, {@code removeAll}, and {@code 46 * added to the multimap. 52 * then add the key back to the multimap, that key will come last in the key 55 * <p>The multimap does not store duplicate key-value pairs. Adding a new 58 * <p>Keys and values may be null. All optional multimap methods are supported, 62 * multimap. Concurrent read operations will work correctly. To allow concurrent 63 * update operations, wrap your multimap with a call to {@link 78 * key-value pairs were added to the multimap [all...] |
SetMultimap.java | 28 * A {@code Multimap} that cannot hold duplicate key-value pairs. Adding a 29 * key-value pair that's already in the multimap has no effect. 40 public interface SetMultimap<K, V> extends Multimap<K, V> { 46 * specified in the {@link Multimap} interface. 55 * specified in the {@link Multimap} interface. 64 * specified in the {@link Multimap} interface. 66 * <p>Any duplicates in {@code values} will be stored in the multimap once. 75 * specified in the {@link Multimap} interface. 88 * Compares the specified object to this multimap for equality.
|
TreeMultimap.java | 36 * Implementation of {@code Multimap} whose keys and values are ordered by 56 * <p>The multimap does not store duplicate key-value pairs. Adding a new 60 * supported. The natural ordering does not support nulls. All optional multimap 64 * multimap. Concurrent read operations will work correctly. To allow concurrent 65 * update operations, wrap your multimap with a call to {@link 103 * keys and values, with the same mappings as the specified multimap. 105 * @param multimap the multimap whose contents are copied to this multimap 109 TreeMultimap<K, V> create(Multimap<? extends K, ? extends V> multimap) [all...] |
Serialization.java | 42 * Reads a count corresponding to a serialized map, multiset, or multimap. It 47 * keys in a multimap serialized by {@link 48 * #writeMultimap(Multimap, ObjectOutputStream)}. 153 * Stores the contents of a multimap in an output stream, as part of 155 * change while the method is running. The {@link Multimap#asMap} view 164 Multimap<K, V> multimap, ObjectOutputStream stream) throws IOException { 165 stream.writeInt(multimap.asMap().size()); 166 for (Map.Entry<K, Collection<V>> entry : multimap.asMap().entrySet()) { 176 * Populates a multimap by reading an input stream, as part o [all...] |
LinkedListMultimap.java | 50 * across non-distinct key values. For example, for the following multimap 53 * Multimap<K, V> multimap = LinkedListMultimap.create(); 54 * multimap.put(key1, foo); 55 * multimap.put(key2, bar); 56 * multimap.put(key1, baz);}</pre> 71 * through the keys in the order they were first added to the multimap. 76 * added to the multimap. 78 * <p>Keys and values may be null. All optional multimap methods are supported, 83 * multimap. If the multimap is modified while an iteration over any of thos [all...] |
AbstractSetMultimap.java | 38 * Creates a new multimap that uses the provided map. 64 * <p>Any duplicates in {@code values} will be stored in the multimap once. 72 * Stores a key-value pair in the multimap. 74 * @param key key to store in the multimap 75 * @param value value to store in the multimap 76 * @return {@code true} if the method increased the size of the multimap, or 77 * {@code false} if the multimap already contained the key-value pair 84 * Compares the specified object to this multimap for equality.
|
ForwardingMultimap.java | 29 * A multimap which forwards all its method calls to another multimap. 31 * the backing multimap as desired per the <a 40 implements Multimap<K, V> { 42 @Override protected abstract Multimap<K, V> delegate(); 92 public boolean putAll(Multimap<? extends K, ? extends V> multimap) { 93 return delegate().putAll(multimap);
|
/external/guava/javadoc/com/google/common/collect/ |
Multimap.html | 7 Multimap (Guava Libraries 2010.01.04) 18 parent.document.title="Multimap (Guava Libraries 2010.01.04)"; 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Multimap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 61 <A HREF="../../../../index.html?com/google/common/collect/Multimap.html" target="_top"><B>FRAMES</B></A> 62 <A HREF="Multimap.html" target="_top"><B>NO FRAMES</B></A> 93 Interface Multimap<K,V></H2> 95 <DT><DT><B>Type Parameters:</B><DD><CODE>K</CODE> - the type of keys maintained by this multimap<DD><CODE>V</CODE> - the type of mapped values</DL> 104 <DT><PRE>public interface <B>Multimap<K,V></B></DL> 109 values with a single key. If you call <A HREF="../../../../com/google/common/collect/Multimap.html#put(K, V)"><CODE>put(K, V)</CODE></A> twice, with the same key 110 but different values, the multimap contains mappings from the key to bot [all...] |
LinkedHashMultimap.html | 99 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><K,V>, <A HREF="../../../../com/google/common/collect/SetMultimap.html" title="interface in com.google.common.collect">SetMultimap</A><K,V>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A></DD> 107 Implementation of <code>Multimap</code> that does not allow duplicate key-value 109 which the data was added to the multimap. 112 multimap. Similarly, <code>get</code>, <code>removeAll</code>, and <code>replaceValues</code> return collections that iterate through the values in the 115 added to the multimap. 121 then add the key back to the multimap, that key will come last in the key 124 <p>The multimap does not store duplicate key-value pairs. Adding a new 127 <p>Keys and values may be null. All optional multimap methods are supported, 131 multimap. Concurrent read operations will work correctly. To allow concurren [all...] |
HashMultimap.html | 99 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><K,V>, <A HREF="../../../../com/google/common/collect/SetMultimap.html" title="interface in com.google.common.collect">SetMultimap</A><K,V>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A></DD> 107 Implementation of <A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect"><CODE>Multimap</CODE></A> using hash tables. 109 <p>The multimap does not store duplicate key-value pairs. Adding a new 112 <p>Keys and values may be null. All optional multimap methods are supported, 116 multimap. Concurrent read operations will work correctly. To allow concurrent 117 update operations, wrap your multimap with a call to <A HREF="../../../../com/google/common/collect/Multimaps.html#synchronizedSetMultimap(com.google.common.collect.SetMultimap)"><CODE>Multimaps.synchronizedSetMultimap(com.google.common.collect.SetMultimap<K, V>)</CODE></A>. 146 in the multimap.</TD> 154 Removes all key-value pairs from the multimap.</TD [all...] |
LinkedListMultimap.html | 99 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/google/common/collect/ListMultimap.html" title="interface in com.google.common.collect">ListMultimap</A><K,V>, <A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><K,V>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A></DD> 109 across non-distinct key values. For example, for the following multimap 110 definition: <pre> <code>Multimap<K, V> multimap = LinkedListMultimap.create(); 111 multimap.put(key1, foo); 112 multimap.put(key2, bar); 113 multimap.put(key1, baz);</code></pre> 126 through the keys in the order they were first added to the multimap. 131 added to the multimap [all...] |
TreeMultimap.html | 99 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><K,V>, <A HREF="../../../../com/google/common/collect/SetMultimap.html" title="interface in com.google.common.collect">SetMultimap</A><K,V>, <A HREF="../../../../com/google/common/collect/SortedSetMultimap.html" title="interface in com.google.common.collect">SortedSetMultimap</A><K,V>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A></DD> 107 Implementation of <code>Multimap</code> whose keys and values are ordered by 124 <p>The multimap does not store duplicate key-value pairs. Adding a new 128 supported. The natural ordering does not support nulls. All optional multimap 132 multimap. Concurrent read operations will work correctly. To allow concurrent 133 update operations, wrap your multimap with a call to <A HREF="../../../../com/google/common/collect/Multimaps.html#synchronizedSortedSetMultimap(com.google.common.collect.SortedSetMultimap)"><CODE>Multimaps.synchronizedSortedSetMultimap(com.google.common.collect.SortedSetMultimap<K, V>)</CODE></A>. 162 in the multimap.</TD> 170 Removes all key-value pairs from the multimap.</TD> 179 Returns <code>true</code> if the multimap contains the specified key-value pair.</TD [all...] |
Multimaps.html | 58 <A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect"><B>PREV CLASS</B></A> 104 Provides static methods acting on or generating a <code>Multimap</code>. 139 Returns a multimap view of the specified map.</TD> 165 <CODE><K,V,M extends <A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><K,V>> 171 <TD><CODE><B><A HREF="../../../../com/google/common/collect/Multimaps.html#invertFrom(com.google.common.collect.Multimap, M)">invertFrom</A></B>(<A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><? extends V,? extends K> source, 200 <CODE><K,V> <A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><K,V></CODE></FONT></TD [all...] |
ArrayListMultimap.html | 99 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/google/common/collect/ListMultimap.html" title="interface in com.google.common.collect">ListMultimap</A><K,V>, <A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><K,V>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A></DD> 107 Implementation of <code>Multimap</code> that uses an <code>ArrayList</code> to store 115 <p>This multimap allows duplicate key-value pairs. After adding a new 119 <p>Keys and values may be null. All optional multimap methods are supported, 125 multimap. Concurrent read operations will work correctly. To allow concurrent 126 update operations, wrap your multimap with a call to <A HREF="../../../../com/google/common/collect/Multimaps.html#synchronizedListMultimap(com.google.common.collect.ListMultimap)"><CODE>Multimaps.synchronizedListMultimap(com.google.common.collect.ListMultimap<K, V>)</CODE></A>. 155 in the multimap.</TD> 163 Removes all key-value pairs from the multimap.</TD> 172 Returns <code>true</code> if the multimap contains the specified key-value pair.</TD [all...] |
ForwardingMultimap.html | 100 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><K,V></DD> 104 <DT><PRE>public abstract class <B>ForwardingMultimap<K,V></B><DT>extends <A HREF="../../../../com/google/common/collect/ForwardingObject.html" title="class in com.google.common.collect">ForwardingObject</A><DT>implements <A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><K,V></DL> 108 A multimap which forwards all its method calls to another multimap. 110 the backing multimap as desired per the <a 156 in the multimap.</TD> 164 Removes all key-value pairs from the multimap.</TD> 173 Returns <code>true</code> if the multimap contains the specified key-value pair.</TD [all...] |
ImmutableMultimap.html | 99 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><K,V>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A></DD> 106 <DT><PRE>public abstract class <B>ImmutableMultimap<K,V></B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><K,V>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A></DL> 110 An immutable <A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect"><CODE>Multimap</CODE></A>. Does not permit null keys or values. 112 <p>Unlike <A HREF="../../../../com/google/common/collect/Multimaps.html#unmodifiableMultimap(com.google.common.collect.Multimap)"><CODE>Multimaps.unmodifiableMultimap(Multimap)</CODE></A>, which is 113 a <i>view</i> of a separate multimap which can still change, an instance of 117 you easily make a "defensive copy" of a multimap provided to your class b [all...] |
/external/guava/javadoc/com/google/common/collect/class-use/ |
Multimap.html | 7 Uses of Interface com.google.common.collect.Multimap (Guava Libraries 2010.01.04) 18 parent.document.title="Uses of Interface com.google.common.collect.Multimap (Guava Libraries 2010.01.04)"; 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 62 <A HREF="Multimap.html" target="_top"><B>NO FRAMES</B></A> 84 <B>Uses of Interface<br>com.google.common.collect.Multimap</B></H2> 90 Packages that use <A HREF="../../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A></FONT></TH> 104 Uses of <A HREF="../../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A> in <A HREF="../../../../../com/google/common/collect/package-summary.html">com.google.common.collect</A></FONT></TH> 112 <TH ALIGN="left" COLSPAN="2">Subinterfaces of <A HREF="../../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A> in <A HREF="../../../../../com/g (…) [all...] |