Searched defs:multimap (Results 1 - 15 of 15) sorted by relevance

/external/guava/src/com/google/common/collect/
H A DHashMultimap.java34 * <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 multimap
84 create( Multimap<? extends K, ? extends V> multimap) argument
99 HashMultimap(Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DArrayListMultimap.java42 * <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) {
98 return new ArrayListMultimap<K, V>(multimap);
96 create( Multimap<? extends K, ? extends V> multimap) argument
112 ArrayListMultimap(Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DTreeMultimap.java56 * <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) { argument
111 multimap);
131 TreeMultimap(Comparator<? super K> keyComparator, Comparator<? super V> valueComparator, Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DSerialization.java42 * Reads a count corresponding to a serialized map, multiset, or multimap. It
47 * keys in a multimap serialized by {@link
153 * Stores the contents of a multimap in an output stream, as part of
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 of
181 Multimap<K, V> multimap, ObjectInputStream stream)
184 populateMultimap(multimap, stream, distinctKeys);
188 * Populates a multimap b
163 writeMultimap( Multimap<K, V> multimap, ObjectOutputStream stream) argument
180 populateMultimap( Multimap<K, V> multimap, ObjectInputStream stream) argument
193 populateMultimap( Multimap<K, V> multimap, ObjectInputStream stream, int distinctKeys) argument
[all...]
H A DForwardingMultimap.java29 * A multimap which forwards all its method calls to another multimap.
31 * the backing multimap as desired per the <a
92 public boolean putAll(Multimap<? extends K, ? extends V> multimap) { argument
93 return delegate().putAll(multimap);
H A DImmutableListMultimap.java35 * 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.
149 * multiple times to build multiple multimaps in series. Each multimap
200 putAll( Multimap<? extends K, ? extends V> multimap) argument
226 copyOf( Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DImmutableSetMultimap.java38 * 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.
168 * multiple times to build multiple multimaps in series. Each multimap
224 putAll( Multimap<? extends K, ? extends V> multimap) argument
255 copyOf( Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DLinkedHashMultimap.java38 * 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.
107 * specified multimap
114 create( Multimap<? extends K, ? extends V> multimap) argument
132 LinkedHashMultimap(Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DMultimap.java30 * 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 DImmutableMultimap.java35 * 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
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.
89 * Returns an immutable multimap containing the given entries, in order.
122 * A builder for creating immutable multimap instances, especially
134 * multiple times to build multiple multimaps in series. Each multimap
188 putAll(Multimap<? extends K, ? extends V> multimap) argument
216 copyOf( Multimap<? extends K, ? extends V> multimap) argument
314 putAll(Multimap<? extends K, ? extends V> multimap) argument
406 final ImmutableMultimap<K, V> multimap; field in class:ImmutableMultimap.EntryCollection
408 EntryCollection(ImmutableMultimap<K, V> multimap) argument
487 final Multimap<?, V> multimap; field in class:ImmutableMultimap.Values
489 Values(Multimap<?, V> multimap) argument
[all...]
H A DLinkedListMultimap.java50 * 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 i
155 create( Multimap<? extends K, ? extends V> multimap) argument
172 LinkedListMultimap(Multimap<? extends K, ? extends V> multimap) argument
484 putAll(Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DMultimaps.java61 * 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 by
78 * allow concurrent update operations, wrap the multimap with a call to
87 * <p>Note: the multimap assume
418 synchronizedMultimap( Multimap<K, V> multimap) argument
548 putAll(Multimap<? extends K, ? extends V> multimap) argument
698 synchronizedSetMultimap( SetMultimap<K, V> multimap) argument
739 synchronizedSortedSetMultimap(SortedSetMultimap<K, V> multimap) argument
775 synchronizedListMultimap( ListMultimap<K, V> multimap) argument
1018 putAll(Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DSynchronized.java585 * Returns a synchronized (thread-safe) multimap backed by the specified
586 * multimap using the specified mutex. In order to guarantee serial access, it
587 * is critical that <b>all</b> access to the backing multimap is accomplished
588 * through the returned multimap.
591 * mutex when accessing any of the return multimap's collection views:
594 * Multimap<K, V> m = Synchronized.multimap(
608 * @param multimap the multimap to be wrapped in a synchronized view
609 * @return a synchronized view of the specified multimap
611 public static <K, V> Multimap<K, V> multimap( argument
682 putAll(Multimap<? extends K, ? extends V> multimap) argument
784 listMultimap( ListMultimap<K, V> multimap, @Nullable Object mutex) argument
827 setMultimap( SetMultimap<K, V> multimap, @Nullable Object mutex) argument
879 sortedSetMultimap( SortedSetMultimap<K, V> multimap, @Nullable Object mutex) argument
[all...]
H A DAbstractMultimap.java46 * a multimap as a map that associates each key with a collection of values. All
50 * <p>To implement a multimap, a subclass must define the method {@link
53 * <p>The multimap constructor takes a map that has a single entry for each
55 * in the multimap, {@code AbstractMultimap} calls {@link #createCollection()}
62 * java.util.TreeSet}, in which case the multimap's iterators would propagate
76 * multimap, even if the underlying map and {@link #createCollection()} method
78 * allow concurrent update operations, wrap your multimap with a call to {@link
92 * key. When a key-value pair is added to a multimap that didn't previously
95 * remains in the map as long as the multimap has any values for the key. If
102 * empty, the multimap ma
253 putAll(Multimap<? extends K, ? extends V> multimap) argument
[all...]
/external/stlport/stlport/stl/
H A D_map.h237 class multimap class in inherits:__stlport_class
239 : public __stlport_class<multimap<_Key, _Tp, _Compare, _Alloc> >
242 typedef multimap<_Key, _Tp, _Compare, _Alloc> _Self;
254 friend class multimap<_Key,_Tp,_Compare,_Alloc>;
287 _Rep_type _M_t; // red-black tree representing multimap
292 multimap() : _M_t(_Compare(), allocator_type()) { } function in class:multimap
293 explicit multimap(const _Compare& __comp, function in class:multimap
299 multimap(_InputIterator __first, _InputIterator __last) function in class:multimap
304 multimap(_InputIterator __first, _InputIterator __last, function in class:multimap
309 multimap(_InputIterato function in class:multimap
314 multimap(const value_type* __first, const value_type* __last) function in class:multimap
317 multimap(const value_type* __first, const value_type* __last, function in class:multimap
322 multimap(const_iterator __first, const_iterator __last) function in class:multimap
325 multimap(const_iterator __first, const_iterator __last, function in class:multimap
331 multimap(const _Self& __x) : _M_t(__x._M_t) {} function in class:multimap
334 multimap(__move_source<_Self> src) function in class:multimap
[all...]

Completed in 155 milliseconds