Searched defs:multimap (Results 26 - 50 of 59) sorted by relevance

123

/external/caliper/caliper/src/main/java/com/google/caliper/options/
H A DParsedOptions.java337 private void addToMultimap(String nameAndValues, Multimap<String, String> multimap) argument
343 if (multimap.containsKey(name)) {
346 multimap.putAll(name, split(values));
/external/guava/guava/src/com/google/common/collect/
H A DAbstractMultimap.java87 public boolean putAll(Multimap<? extends K, ? extends V> multimap) { argument
89 for (Map.Entry<? extends K, ? extends V> entry : multimap.entries()) {
121 Multimap<K, V> multimap() { method in class:AbstractMultimap.Entries
220 * Returns the hash code for this multimap.
222 * <p>The hash code of a multimap is defined as the hash code of the map view,
232 * Returns a string representation of the multimap, generated by calling
235 * @return a string representation of the multimap
H A DImmutableListMultimap.java37 * a <i>view</i> of a separate multimap which can still change, an instance of
41 * you easily make a "defensive copy" of a multimap provided to your class by
60 /** Returns the empty multimap. */
61 // Casting is safe because the multimap will never hold any elements.
68 * Returns an immutable multimap containing a single entry.
78 * Returns an immutable multimap containing the given entries, in order.
89 * Returns an immutable multimap containing the given entries, in order.
102 * Returns an immutable multimap containing the given entries, in order.
116 * Returns an immutable multimap containing the given entries, in order.
153 * times to build multiple multimaps in series. Each multimap contain
192 putAll( Multimap<? extends K, ? extends V> multimap) argument
240 copyOf( Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DImmutableSetMultimap.java46 * a <i>view</i> of a separate multimap which can still change, an instance of
50 * you easily make a "defensive copy" of a multimap provided to your class by
69 /** Returns the empty multimap. */
70 // Casting is safe because the multimap will never hold any elements.
77 * Returns an immutable multimap containing a single entry.
86 * 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.
127 * Returns an immutable multimap containing the given entries, in order.
178 * times to build multiple multimaps in series. Each multimap contain
225 putAll( Multimap<? extends K, ? extends V> multimap) argument
297 copyOf( Multimap<? extends K, ? extends V> multimap) argument
302 copyOf( Multimap<? extends K, ? extends V> multimap, Comparator<? super V> valueComparator) argument
426 private transient final ImmutableSetMultimap<K, V> multimap; field in class:ImmutableSetMultimap.EntrySet
428 EntrySet(ImmutableSetMultimap<K, V> multimap) argument
[all...]
H A DImmutableMultimap.java43 * 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
68 /** Returns an empty multimap. */
74 * Returns an immutable multimap containing a single entry.
81 * Returns an immutable multimap containing the given entries, in order.
88 * Returns an immutable multimap containing the given entries, in order.
96 * Returns an immutable multimap containing the given entries, in order.
104 * Returns an immutable multimap containing the given entries, in order.
137 * A builder for creating immutable multimap instances, especially
149 * times to build multiple multimaps in series. Each multimap contain
222 putAll(Multimap<? extends K, ? extends V> multimap) argument
288 copyOf( Multimap<? extends K, ? extends V> multimap) argument
415 putAll(Multimap<? extends K, ? extends V> multimap) argument
502 final ImmutableMultimap<K, V> multimap; field in class:ImmutableMultimap.EntryCollection
504 EntryCollection(ImmutableMultimap<K, V> multimap) argument
642 private transient final ImmutableMultimap<K, V> multimap; field in class:ImmutableMultimap.Values
644 Values(ImmutableMultimap<K, V> multimap) argument
[all...]
H A DLinkedHashMultimap.java45 * which the data was added to the multimap.
49 * multimap. Similarly, {@code get}, {@code removeAll}, and {@code
53 * added to the multimap.
59 * then add the key back to the multimap, that key will come last in the key
62 * <p>The multimap does not store duplicate key-value pairs. Adding a new
65 * <p>Keys and values may be null. All optional multimap methods are supported,
69 * multimap. Concurrent read operations will work correctly. To allow concurrent
70 * update operations, wrap your multimap with a call to {@link
110 * specified multimap. If a key-value mapping appears multiple times in the
111 * input multimap, i
117 create( Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DLinkedListMultimap.java48 * across non-distinct key values. For example, for the following multimap
51 * Multimap<K, V> multimap = LinkedListMultimap.create();
52 * multimap.put(key1, foo);
53 * multimap.put(key2, bar);
54 * multimap.put(key1, baz);}</pre>
69 * through the keys in the order they were first added to the multimap.
74 * added to the multimap.
82 * that are views of the multimap. If the multimap is modified while an
86 * <p>Keys and values may be null. All optional multimap method
194 create( Multimap<? extends K, ? extends V> multimap) argument
207 LinkedListMultimap(Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DMapConstraints.java90 * Returns a constrained view of the specified multimap, using the specified
95 * <p>Note that the generated multimap's {@link Multimap#removeAll} and
99 * <p>The returned multimap is not serializable.
101 * @param multimap the multimap to constrain
103 * @return a constrained view of the multimap
106 Multimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) {
107 return new ConstrainedMultimap<K, V>(multimap, constraint);
111 * Returns a constrained view of the specified list multimap, using the
116 * <p>Note that the generated multimap'
105 constrainedMultimap( Multimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) argument
126 constrainedListMultimap( ListMultimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) argument
147 constrainedSetMultimap( SetMultimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) argument
168 constrainedSortedSetMultimap( SortedSetMultimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) argument
492 putAll( Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DMultimaps.java79 * multimap iteration order. They also specify the behavior of the
81 * multimap and its returned views. However, the multimap's {@code get}
85 * <p>The multimap is serializable if {@code map}, {@code factory}, the
86 * collections generated by {@code factory}, and the multimap contents are all
89 * <p>The multimap is not threadsafe when any concurrent operations update the
90 * multimap, even if {@code map} and the instances generated by
92 * allow concurrent update operations, wrap the multimap with a call to
101 * <p>Note: the multimap assumes complete ownership over of {@code map} and
156 * It can generate a multimap base
449 synchronizedMultimap( Multimap<K, V> multimap) argument
563 putAll(Multimap<? extends K, ? extends V> multimap) argument
677 synchronizedSetMultimap( SetMultimap<K, V> multimap) argument
733 synchronizedSortedSetMultimap(SortedSetMultimap<K, V> multimap) argument
772 synchronizedListMultimap( ListMultimap<K, V> multimap) argument
862 asMap(ListMultimap<K, V> multimap) argument
875 asMap(SetMultimap<K, V> multimap) argument
889 asMap( SortedSetMultimap<K, V> multimap) argument
901 asMap(Multimap<K, V> multimap) argument
1002 putAll(Multimap<? extends K, ? extends V> multimap) argument
1245 putAll( Multimap<? extends K, ? extends V2> multimap) argument
1515 final Multimap<K, V> multimap; field in class:Multimaps.Keys
1517 Keys(Multimap<K, V> multimap) argument
1641 abstract Multimap<K, V> multimap(); method in class:Multimaps.Entries
1673 private final Multimap<K, V> multimap; field in class:Multimaps.AsMap
1675 AsMap(Multimap<K, V> multimap) argument
2026 filterFiltered(FilteredMultimap<K, V> multimap, Predicate<? super Entry<K, V>> entryPredicate) argument
2039 filterFiltered( FilteredSetMultimap<K, V> multimap, Predicate<? super Entry<K, V>> entryPredicate) argument
2047 equalsImpl(Multimap<?, ?> multimap, @Nullable Object object) argument
[all...]
H A DSynchronized.java505 static <K, V> Multimap<K, V> multimap( argument
506 Multimap<K, V> multimap, @Nullable Object mutex) {
507 if (multimap instanceof SynchronizedMultimap ||
508 multimap instanceof ImmutableMultimap) {
509 return multimap;
511 return new SynchronizedMultimap<K, V>(multimap, mutex);
588 public boolean putAll(Multimap<? extends K, ? extends V> multimap) { argument
590 return delegate().putAll(multimap);
691 ListMultimap<K, V> multimap, @Nullable Object mutex) {
692 if (multimap instanceo
690 listMultimap( ListMultimap<K, V> multimap, @Nullable Object mutex) argument
727 setMultimap( SetMultimap<K, V> multimap, @Nullable Object mutex) argument
774 sortedSetMultimap( SortedSetMultimap<K, V> multimap, @Nullable Object mutex) argument
[all...]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DImmutableSetMultimap.java40 * a <i>view</i> of a separate multimap which can still change, an instance of
44 * you easily make a "defensive copy" of a multimap provided to your class by
63 /** Returns the empty multimap. */
64 // Casting is safe because the multimap will never hold any elements.
71 * Returns an immutable multimap containing a single entry.
80 * Returns an immutable multimap containing the given entries, in order.
92 * Returns an immutable multimap containing the given entries, in order.
106 * Returns an immutable multimap containing the given entries, in order.
121 * Returns an immutable multimap containing the given entries, in order.
172 * times to build multiple multimaps in series. Each multimap contain
219 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
420 private transient final ImmutableSetMultimap<K, V> multimap; field in class:ImmutableSetMultimap.EntrySet
422 EntrySet(ImmutableSetMultimap<K, V> multimap) argument
[all...]
H A DImmutableMultimap.java42 * a <i>view</i> of a separate multimap which can still change, an instance of
46 * you easily make a "defensive copy" of a multimap provided to your class by
67 /** Returns an empty multimap. */
73 * Returns an immutable multimap containing a single entry.
80 * Returns an immutable multimap containing the given entries, in order.
87 * Returns an immutable multimap containing the given entries, in order.
95 * Returns an immutable multimap containing the given entries, in order.
103 * Returns an immutable multimap containing the given entries, in order.
136 * A builder for creating immutable multimap instances, especially
148 * times to build multiple multimaps in series. Each multimap contain
221 putAll(Multimap<? extends K, ? extends V> multimap) argument
287 copyOf( Multimap<? extends K, ? extends V> multimap) argument
402 putAll(Multimap<? extends K, ? extends V> multimap) argument
489 final ImmutableMultimap<K, V> multimap; field in class:ImmutableMultimap.EntryCollection
491 EntryCollection(ImmutableMultimap<K, V> multimap) argument
629 private transient final ImmutableMultimap<K, V> multimap; field in class:ImmutableMultimap.Values
631 Values(ImmutableMultimap<K, V> multimap) argument
[all...]
H A DLinkedHashMultimap.java41 * which the data was added to the multimap.
45 * multimap. Similarly, {@code get}, {@code removeAll}, and {@code
49 * added to the multimap.
55 * then add the key back to the multimap, that key will come last in the key
58 * <p>The multimap does not store duplicate key-value pairs. Adding a new
61 * <p>Keys and values may be null. All optional multimap methods are supported,
65 * multimap. Concurrent read operations will work correctly. To allow concurrent
66 * update operations, wrap your multimap with a call to {@link
106 * specified multimap. If a key-value mapping appears multiple times in the
107 * input multimap, i
113 create( Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DLinkedListMultimap.java44 * across non-distinct key values. For example, for the following multimap
47 * Multimap<K, V> multimap = LinkedListMultimap.create();
48 * multimap.put(key1, foo);
49 * multimap.put(key2, bar);
50 * multimap.put(key1, baz);}</pre>
65 * through the keys in the order they were first added to the multimap.
70 * added to the multimap.
78 * that are views of the multimap. If the multimap is modified while an
82 * <p>Keys and values may be null. All optional multimap method
190 create( Multimap<? extends K, ? extends V> multimap) argument
203 LinkedListMultimap(Multimap<? extends K, ? extends V> multimap) argument
[all...]
H A DMultimaps.java75 * multimap iteration order. They also specify the behavior of the
77 * multimap and its returned views. However, the multimap's {@code get}
81 * <p>The multimap is serializable if {@code map}, {@code factory}, the
82 * collections generated by {@code factory}, and the multimap contents are all
85 * <p>The multimap is not threadsafe when any concurrent operations update the
86 * multimap, even if {@code map} and the instances generated by
88 * allow concurrent update operations, wrap the multimap with a call to
97 * <p>Note: the multimap assumes complete ownership over of {@code map} and
131 * It can generate a multimap base
360 synchronizedMultimap( Multimap<K, V> multimap) argument
474 putAll(Multimap<? extends K, ? extends V> multimap) argument
588 synchronizedSetMultimap( SetMultimap<K, V> multimap) argument
644 synchronizedSortedSetMultimap(SortedSetMultimap<K, V> multimap) argument
683 synchronizedListMultimap( ListMultimap<K, V> multimap) argument
773 asMap(ListMultimap<K, V> multimap) argument
786 asMap(SetMultimap<K, V> multimap) argument
800 asMap( SortedSetMultimap<K, V> multimap) argument
812 asMap(Multimap<K, V> multimap) argument
913 putAll(Multimap<? extends K, ? extends V> multimap) argument
1156 putAll( Multimap<? extends K, ? extends V2> multimap) argument
1426 final Multimap<K, V> multimap; field in class:Multimaps.Keys
1428 Keys(Multimap<K, V> multimap) argument
1552 abstract Multimap<K, V> multimap(); method in class:Multimaps.Entries
1584 private final Multimap<K, V> multimap; field in class:Multimaps.AsMap
1586 AsMap(Multimap<K, V> multimap) argument
1937 filterFiltered(FilteredMultimap<K, V> multimap, Predicate<? super Entry<K, V>> entryPredicate) argument
1950 filterFiltered( FilteredSetMultimap<K, V> multimap, Predicate<? super Entry<K, V>> entryPredicate) argument
1958 equalsImpl(Multimap<?, ?> multimap, @Nullable Object object) argument
[all...]
H A DSynchronized.java489 static <K, V> Multimap<K, V> multimap( argument
490 Multimap<K, V> multimap, @Nullable Object mutex) {
491 if (multimap instanceof SynchronizedMultimap ||
492 multimap instanceof ImmutableMultimap) {
493 return multimap;
495 return new SynchronizedMultimap<K, V>(multimap, mutex);
572 public boolean putAll(Multimap<? extends K, ? extends V> multimap) { argument
574 return delegate().putAll(multimap);
675 ListMultimap<K, V> multimap, @Nullable Object mutex) {
676 if (multimap instanceo
674 listMultimap( ListMultimap<K, V> multimap, @Nullable Object mutex) argument
711 setMultimap( SetMultimap<K, V> multimap, @Nullable Object mutex) argument
758 sortedSetMultimap( SortedSetMultimap<K, V> multimap, @Nullable Object mutex) argument
[all...]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
H A DImmutableListMultimapTest.java52 ImmutableListMultimap<String, Integer> multimap = new Builder<String, Integer>()
55 assertEquals(Arrays.asList(1), multimap.get("one"));
101 Multimap<String, Integer> multimap = builder.build();
102 assertEquals(Arrays.asList(1, 2, 3, 6, 7), multimap.get("foo"));
103 assertEquals(Arrays.asList(4, 5), multimap.get("bar"));
104 assertEquals(7, multimap.size());
113 Multimap<String, Integer> multimap = builder.build();
114 assertEquals(Arrays.asList(1, 2, 3, 6, 7), multimap.get("foo"));
115 assertEquals(Arrays.asList(4, 5), multimap.get("bar"));
116 assertEquals(7, multimap
476 assertMultimapEquals(Multimap<K, V> multimap, Object... alternatingKeysAndValues) argument
[all...]
H A DMultimapsTest.java118 ListMultimap<String, Integer> multimap
120 assertTrue(multimap.get("foo") instanceof RandomAccess);
121 assertTrue(multimap.get("bar") instanceof RandomAccess);
128 ListMultimap<String, Integer> multimap
130 assertFalse(multimap.get("foo") instanceof RandomAccess);
131 assertFalse(multimap.get("bar") instanceof RandomAccess);
170 * The supplied multimap will be mutated and an unmodifiable instance used
171 * in its stead. The multimap must support null keys and values.
174 Multimap<String, Integer> multimap, boolean permitsDuplicates) {
175 checkUnmodifiableMultimap(multimap, permitsDuplicate
173 checkUnmodifiableMultimap( Multimap<String, Integer> multimap, boolean permitsDuplicates) argument
183 checkUnmodifiableMultimap( Multimap<String, Integer> multimap, boolean permitsDuplicates, @Nullable String nullKey, @Nullable Integer nullValue) argument
218 prepareUnmodifiableTests( Multimap<String, Integer> multimap, boolean permitsDuplicates, @Nullable String nullKey, @Nullable Integer nullValue) argument
[all...]
/external/guava/guava-tests/test/com/google/common/collect/
H A DImmutableListMultimapTest.java76 ImmutableListMultimap<String, Integer> multimap = new Builder<String, Integer>()
79 assertEquals(Arrays.asList(1), multimap.get("one"));
125 Multimap<String, Integer> multimap = builder.build();
126 assertEquals(Arrays.asList(1, 2, 3, 6, 7), multimap.get("foo"));
127 assertEquals(Arrays.asList(4, 5), multimap.get("bar"));
128 assertEquals(7, multimap.size());
137 Multimap<String, Integer> multimap = builder.build();
138 assertEquals(Arrays.asList(1, 2, 3, 6, 7), multimap.get("foo"));
139 assertEquals(Arrays.asList(4, 5), multimap.get("bar"));
140 assertEquals(7, multimap
500 assertMultimapEquals(Multimap<K, V> multimap, Object... alternatingKeysAndValues) argument
[all...]
H A DImmutableSetMultimapTest.java74 ImmutableSetMultimap<String, Integer> multimap = new Builder<String, Integer>()
77 assertEquals(ImmutableSet.of(1), multimap.get("one"));
123 Multimap<String, Integer> multimap = builder.build();
124 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo"));
125 assertEquals(ImmutableSet.of(4, 5), multimap.get("bar"));
126 assertEquals(7, multimap.size());
135 Multimap<String, Integer> multimap = builder.build();
136 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo"));
137 assertEquals(ImmutableSet.of(4, 5), multimap.get("bar"));
138 assertEquals(7, multimap
497 assertMultimapEquals(Multimap<K, V> multimap, Object... alternatingKeysAndValues) argument
[all...]
H A DMultimapsCollectionTest.java100 Multimap<Integer, String> multimap, String[] elements) {
101 multimap.put(2, "foo");
103 multimap.put(3, element);
108 Multimap<String, Integer> multimap, String[] elements) {
110 multimap.put(element, 2);
111 multimap.put(element, 3);
116 Multimap<Integer, String> multimap, String[] elements) {
118 multimap.put(i % 2, elements[i]);
123 Multimap<String, Integer> multimap, String[] elements) {
125 multimap
99 populateMultimapForGet( Multimap<Integer, String> multimap, String[] elements) argument
107 populateMultimapForKeySet( Multimap<String, Integer> multimap, String[] elements) argument
115 populateMultimapForValues( Multimap<Integer, String> multimap, String[] elements) argument
122 populateMultimapForKeys( Multimap<String, Integer> multimap, String[] elements) argument
363 transform(Multimap<String, String> multimap) argument
514 filter(SetMultimap<String, Integer> multimap) argument
548 filter(ListMultimap<String, Integer> multimap) argument
[all...]
H A DMultimapsTest.java135 ListMultimap<String, Integer> multimap
137 assertTrue(multimap.get("foo") instanceof RandomAccess);
138 assertTrue(multimap.get("bar") instanceof RandomAccess);
145 ListMultimap<String, Integer> multimap
147 assertFalse(multimap.get("foo") instanceof RandomAccess);
148 assertFalse(multimap.get("bar") instanceof RandomAccess);
208 SortedSetMultimap<String, Integer> multimap
210 checkUnmodifiableMultimap(multimap, false, "null", 42);
211 assertSame(INT_COMPARATOR, multimap.valueComparator());
218 SortedSetMultimap<String, Integer> multimap
265 checkUnmodifiableMultimap( Multimap<String, Integer> multimap, boolean permitsDuplicates) argument
275 checkUnmodifiableMultimap( Multimap<String, Integer> multimap, boolean permitsDuplicates, @Nullable String nullKey, @Nullable Integer nullValue) argument
310 prepareUnmodifiableTests( Multimap<String, Integer> multimap, boolean permitsDuplicates, @Nullable String nullKey, @Nullable Integer nullValue) argument
[all...]
/external/guice/core/src/com/google/inject/internal/
H A DInjectorImpl.java915 final Map<TypeLiteral<?>, List<Binding<?>>> multimap = Maps.newHashMap(); field in class:InjectorImpl.BindingsMultimap
918 List<Binding<?>> bindingsForType = multimap.get(type);
921 multimap.put(type, bindingsForType);
929 List<Binding<?>> bindings = multimap.get(type);
931 ? Collections.<Binding<T>>unmodifiableList((List) multimap.get(type))
/external/guava/guava-testlib/test/com/google/common/testing/
H A DNullPointerTesterTest.java857 Multimap<String, Integer> multimap,
870 multimap, immutableMultimap,
843 checkDefaultValuesForTheseTypes( Gender gender, Integer integer, int i, String string, CharSequence charSequence, List<String> list, ImmutableList<Integer> immutableList, Map<String, Integer> map, ImmutableMap<String, String> immutableMap, Set<String> set, ImmutableSet<Integer> immutableSet, SortedSet<Number> sortedSet, ImmutableSortedSet<Number> immutableSortedSet, Multiset<String> multiset, ImmutableMultiset<Integer> immutableMultiset, Multimap<String, Integer> multimap, ImmutableMultimap<String, Integer> immutableMultimap, Table<String, Integer, Exception> table, ImmutableTable<Integer, String, Exception> immutableTable) argument
/external/owasp/sanitizer/distrib/lib/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...

Completed in 2267 milliseconds

123