/external/guava/guava/src/com/google/common/collect/ |
H A D | HashMultimap.java | 35 * <p>The multimap does not store duplicate key-value pairs. Adding a new 38 * <p>Keys and values may be null. All optional multimap methods are supported, 42 * multimap. Concurrent read operations will work correctly. To allow concurrent 43 * update operations, wrap your multimap with a call to {@link 80 * multimap. If a key-value mapping appears multiple times in the input 81 * multimap, it only appears once in the constructed multimap. 83 * @param multimap the multimap whose contents are copied to this multimap 85 create( Multimap<? extends K, ? extends V> multimap) argument 100 HashMultimap(Multimap<? extends K, ? extends V> multimap) argument [all...] |
H A D | ArrayListMultimap.java | 43 * <p>This multimap allows duplicate key-value pairs. After adding a new 48 * <p>Keys and values may be null. All optional multimap methods are supported, 55 * multimap. Concurrent read operations will work correctly. To allow concurrent 56 * update operations, wrap your multimap with a call to {@link 93 * specified multimap. 95 * @param multimap the multimap whose contents are copied to this multimap 98 Multimap<? extends K, ? extends V> multimap) { 99 return new ArrayListMultimap<K, V>(multimap); 97 create( Multimap<? extends K, ? extends V> multimap) argument 113 ArrayListMultimap(Multimap<? extends K, ? extends V> multimap) argument [all...] |
H A D | TreeMultimap.java | 55 * <p>The multimap does not store duplicate key-value pairs. Adding a new 59 * respective comparators support them). All optional multimap methods are 63 * multimap. Concurrent read operations will work correctly. To allow concurrent 64 * update operations, wrap your multimap with a call to {@link 101 * keys and values, with the same mappings as the specified multimap. 103 * @param multimap the multimap whose contents are copied to this multimap 106 TreeMultimap<K, V> create(Multimap<? extends K, ? extends V> multimap) { argument 108 multimap); 118 TreeMultimap(Comparator<? super K> keyComparator, Comparator<? super V> valueComparator, Multimap<? extends K, ? extends V> multimap) argument [all...] |
H A D | Serialization.java | 38 * Reads a count corresponding to a serialized map, multiset, or multimap. It 43 * keys in a multimap serialized by {@link 142 * Stores the contents of a multimap in an output stream, as part of 152 Multimap<K, V> multimap, ObjectOutputStream stream) throws IOException { 153 stream.writeInt(multimap.asMap().size()); 154 for (Map.Entry<K, Collection<V>> entry : multimap.asMap().entrySet()) { 164 * Populates a multimap by reading an input stream, as part of 168 Multimap<K, V> multimap, ObjectInputStream stream) 171 populateMultimap(multimap, stream, distinctKeys); 175 * Populates a multimap b 151 writeMultimap( Multimap<K, V> multimap, ObjectOutputStream stream) argument 167 populateMultimap( Multimap<K, V> multimap, ObjectInputStream stream) argument 179 populateMultimap( Multimap<K, V> multimap, ObjectInputStream stream, int distinctKeys) argument [all...] |
H A D | ForwardingMultimap.java | 29 * A multimap which forwards all its method calls to another multimap. 31 * the backing multimap as desired per the <a 107 public boolean putAll(Multimap<? extends K, ? extends V> multimap) { argument 108 return delegate().putAll(multimap);
|
H A D | LinkedHashMultimap.java | 40 * which the data was added to the multimap. 44 * multimap. Similarly, {@code get}, {@code removeAll}, and {@code 48 * added to the multimap. 54 * then add the key back to the multimap, that key will come last in the key 57 * <p>The multimap does not store duplicate key-value pairs. Adding a new 60 * <p>Keys and values may be null. All optional multimap methods are supported, 64 * multimap. Concurrent read operations will work correctly. To allow concurrent 65 * update operations, wrap your multimap with a call to {@link 80 * key-value pairs were added to the multimap. 109 * specified multimap 116 create( Multimap<? extends K, ? extends V> multimap) argument 135 LinkedHashMultimap(Multimap<? extends K, ? extends V> multimap) argument [all...] |
H A D | 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 ar 138 putAll(Multimap<? extends K, ? extends V> multimap) argument [all...] |
H A D | ImmutableListMultimap.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. 65 * Returns an immutable multimap containing a single entry. 75 * Returns an immutable multimap containing the given entries, in order. 86 * Returns an immutable multimap containing the given entries, in order. 99 * Returns an immutable multimap containing the given entries, in order. 113 * Returns an immutable multimap containing the given entries, in order. 150 * times to build multiple multimaps in series. Each multimap contain 189 putAll( Multimap<? extends K, ? extends V> multimap) argument 237 copyOf( Multimap<? extends K, ? extends V> multimap) argument [all...] |
H A D | ImmutableSetMultimap.java | 43 * a <i>view</i> of a separate multimap which can still change, an instance of 47 * you easily make a "defensive copy" of a multimap provided to your class by 62 /** Returns the empty multimap. */ 63 // Casting is safe because the multimap will never hold any elements. 70 * Returns an immutable multimap containing a single entry. 79 * Returns an immutable multimap containing the given entries, in order. 91 * Returns an immutable multimap containing the given entries, in order. 105 * Returns an immutable multimap containing the given entries, in order. 120 * Returns an immutable multimap containing the given entries, in order. 165 Comparator<? super K> keyComparator, Multimap<K, V> multimap) { 164 SortedKeyBuilderMultimap( Comparator<? super K> keyComparator, Multimap<K, V> multimap) argument 235 putAll( Multimap<? extends K, ? extends V> multimap) argument 296 copyOf( Multimap<? extends K, ? extends V> multimap) argument 301 copyOf( Multimap<? extends K, ? extends V> multimap, Comparator<? super V> valueComparator) argument [all...] |
/external/guava/guava-gwt/src/com/google/common/collect/ |
H A D | ArrayListMultimap_CustomFieldSerializer.java | 42 ArrayListMultimap<?, ?> multimap) throws SerializationException { 43 Multimap_CustomFieldSerializerBase.serialize(out, multimap); 41 serialize(SerializationStreamWriter out, ArrayListMultimap<?, ?> multimap) argument
|
H A D | HashMultimap_CustomFieldSerializer.java | 42 HashMultimap<?, ?> multimap) throws SerializationException { 43 Multimap_CustomFieldSerializerBase.serialize(out, multimap); 41 serialize(SerializationStreamWriter out, HashMultimap<?, ?> multimap) argument
|
H A D | LinkedHashMultimap_CustomFieldSerializer.java | 38 LinkedHashMultimap<Object, Object> multimap = 43 multimap.linkedEntries.clear(); // will clear and repopulate entries 44 for (int i = 0; i < multimap.size(); i++) { 47 multimap.linkedEntries.add(Maps.immutableEntry(key, value)); 50 return multimap; 54 LinkedHashMultimap<?, ?> multimap) throws SerializationException { 55 Multimap_CustomFieldSerializerBase.serialize(out, multimap); 56 for (Map.Entry<?, ?> entry : multimap.entries()) { 53 serialize(SerializationStreamWriter out, LinkedHashMultimap<?, ?> multimap) argument
|
H A D | LinkedListMultimap_CustomFieldSerializer.java | 38 LinkedListMultimap<Object, Object> multimap = LinkedListMultimap.create(); 43 multimap.put(key, value); 45 return multimap; 49 LinkedListMultimap<?, ?> multimap) throws SerializationException { 50 out.writeInt(multimap.size()); 51 for (Map.Entry<?, ?> entry : multimap.entries()) { 48 serialize(SerializationStreamWriter out, LinkedListMultimap<?, ?> multimap) argument
|
H A D | Multimap_CustomFieldSerializerBase.java | 54 SerializationStreamReader reader, Multimap<Object, Object> multimap) 62 multimap.put(key, value); 65 return multimap; 53 populate( SerializationStreamReader reader, Multimap<Object, Object> multimap) argument
|
H A D | TreeMultimap_CustomFieldSerializer.java | 48 TreeMultimap<?, ?> multimap) throws SerializationException { 49 out.writeObject(multimap.keyComparator()); 50 out.writeObject(multimap.valueComparator()); 51 Multimap_CustomFieldSerializerBase.serialize(out, multimap); 47 serialize(SerializationStreamWriter out, TreeMultimap<?, ?> multimap) argument
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
H A D | ArrayListMultimap.java | 38 * <p>This multimap allows duplicate key-value pairs. After adding a new 43 * <p>Keys and values may be null. All optional multimap methods are supported, 50 * multimap. Concurrent read operations will work correctly. To allow concurrent 51 * update operations, wrap your multimap with a call to {@link 88 * specified multimap. 90 * @param multimap the multimap whose contents are copied to this multimap 93 Multimap<? extends K, ? extends V> multimap) { 94 return new ArrayListMultimap<K, V>(multimap); 92 create( Multimap<? extends K, ? extends V> multimap) argument 108 ArrayListMultimap(Multimap<? extends K, ? extends V> multimap) argument [all...] |
H A D | HashMultimap.java | 30 * <p>The multimap does not store duplicate key-value pairs. Adding a new 33 * <p>Keys and values may be null. All optional multimap methods are supported, 37 * multimap. Concurrent read operations will work correctly. To allow concurrent 38 * update operations, wrap your multimap with a call to {@link 75 * multimap. If a key-value mapping appears multiple times in the input 76 * multimap, it only appears once in the constructed multimap. 78 * @param multimap the multimap whose contents are copied to this multimap 80 create( Multimap<? extends K, ? extends V> multimap) argument 95 HashMultimap(Multimap<? extends K, ? extends V> multimap) argument [all...] |
H A D | TreeMultimap.java | 51 * <p>The multimap does not store duplicate key-value pairs. Adding a new 55 * respective comparators support them). All optional multimap methods are 59 * multimap. Concurrent read operations will work correctly. To allow concurrent 60 * update operations, wrap your multimap with a call to {@link 97 * keys and values, with the same mappings as the specified multimap. 99 * @param multimap the multimap whose contents are copied to this multimap 102 TreeMultimap<K, V> create(Multimap<? extends K, ? extends V> multimap) { argument 104 multimap); 114 TreeMultimap(Comparator<? super K> keyComparator, Comparator<? super V> valueComparator, Multimap<? extends K, ? extends V> multimap) argument [all...] |
H A D | ImmutableListMultimap.java | 33 * a <i>view</i> of a separate multimap which can still change, an instance of 37 * you easily make a "defensive copy" of a multimap provided to your class by 52 /** Returns the empty multimap. */ 53 // Casting is safe because the multimap will never hold any elements. 60 * Returns an immutable multimap containing a single entry. 70 * Returns an immutable multimap containing the given entries, in order. 81 * Returns an immutable multimap containing the given entries, in order. 94 * Returns an immutable multimap containing the given entries, in order. 108 * Returns an immutable multimap containing the given entries, in order. 145 * times to build multiple multimaps in series. Each multimap contain 184 putAll( Multimap<? extends K, ? extends V> multimap) argument 232 copyOf( Multimap<? extends K, ? extends V> multimap) argument [all...] |
H A D | LinkedHashMultimap.java | 36 * which the data was added to the multimap. 40 * multimap. Similarly, {@code get}, {@code removeAll}, and {@code 44 * added to the multimap. 50 * then add the key back to the multimap, that key will come last in the key 53 * <p>The multimap does not store duplicate key-value pairs. Adding a new 56 * <p>Keys and values may be null. All optional multimap methods are supported, 60 * multimap. Concurrent read operations will work correctly. To allow concurrent 61 * update operations, wrap your multimap with a call to {@link 76 * key-value pairs were added to the multimap. 105 * specified multimap 112 create( Multimap<? extends K, ? extends V> multimap) argument 131 LinkedHashMultimap(Multimap<? extends K, ? extends V> multimap) argument [all...] |
H A D | ImmutableMultimap.java | 41 * a <i>view</i> of a separate multimap which can still change, an instance of 45 * you easily make a "defensive copy" of a multimap provided to your class by 63 /** Returns an empty multimap. */ 69 * Returns an immutable multimap containing a single entry. 76 * Returns an immutable multimap containing the given entries, in order. 83 * Returns an immutable multimap containing the given entries, in order. 91 * Returns an immutable multimap containing the given entries, in order. 99 * Returns an immutable multimap containing the given entries, in order. 138 Comparator<? super K> keyComparator, Multimap<K, V> multimap) { 140 putAll(multimap); 137 SortedKeyBuilderMultimap( Comparator<? super K> keyComparator, Multimap<K, V> multimap) argument 229 putAll(Multimap<? extends K, ? extends V> multimap) argument 286 copyOf( Multimap<? extends K, ? extends V> multimap) argument 390 putAll(Multimap<? extends K, ? extends V> multimap) argument 495 final ImmutableMultimap<K, V> multimap; field in class:ImmutableMultimap.EntryCollection 497 EntryCollection(ImmutableMultimap<K, V> multimap) argument 585 final ImmutableMultimap<?, V> multimap; field in class:ImmutableMultimap.Values 587 Values(ImmutableMultimap<?, V> multimap) argument [all...] |
H A D | 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. 65 * Returns an immutable multimap containing a single entry. 74 * Returns an immutable multimap containing the given entries, in order. 86 * Returns an immutable multimap containing the given entries, in order. 100 * Returns an immutable multimap containing the given entries, in order. 115 * Returns an immutable multimap containing the given entries, in order. 160 Comparator<? super K> keyComparator, Multimap<K, V> multimap) { 159 SortedKeyBuilderMultimap( Comparator<? super K> keyComparator, Multimap<K, V> multimap) argument 230 putAll( Multimap<? extends K, ? extends V> multimap) argument 291 copyOf( Multimap<? extends K, ? extends V> multimap) argument 296 copyOf( Multimap<? extends K, ? extends V> multimap, Comparator<? super V> valueComparator) argument [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | AbstractMultimapAsMapImplementsMapTest.java | 26 * Test {@link Multimap#asMap()} for an arbitrary multimap with 41 protected void populate(Multimap<String, Integer> multimap) { argument 42 multimap.put("one", 1); 43 multimap.put("two", 2); 44 multimap.put("two", 22); 45 multimap.put("three", 3); 46 multimap.put("three", 33); 47 multimap.put("three", 333);
|
H A D | LinkedHashMultimapTest.java | 51 Multimap<String, Integer> multimap = getMultimap(); 52 multimap.put("foo", 5); 53 multimap.put("bar", 4); 54 multimap.put("foo", 3); 55 multimap.put("cow", 2); 56 multimap.put("bar", 1); 57 return multimap; 66 Multimap<String, Integer> multimap = initializeMultimap5(); 67 assertOrderingReadOnly(multimap); 71 Multimap<String, Integer> multimap 88 assertOrderingReadOnly(Multimap<String, Integer> multimap) argument [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
H A D | UnmodifiableCollectionTests.java | 251 * Verifies that a multimap is immutable. 253 * <p>A multimap is considered immutable if: 258 * multimap throw UnsupportedOperationException when those mutators 261 * @param multimap the presumed-immutable multimap 263 * {@code multimap}. {@code multimap} may or may not have {@code sampleKey} as 266 * {@code multimap}. {@code multimap} may or may not have {@code sampleValue} 270 Multimap<K, V> multimap, fina 269 assertMultimapIsUnmodifiable( Multimap<K, V> multimap, final K sampleKey, final V sampleValue) argument [all...] |