HomeSort by relevance Sort by last modified time
    Searched refs:multimap (Results 1 - 25 of 386) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
LinkedHashMultimapTest.java 41 LinkedHashMultimap<String, Integer> multimap = LinkedHashMultimap.create(); local
43 multimap.put("a", z);
47 (LinkedHashMultimap.ValueSet) multimap.backingMap().get("a");
54 private Multimap<String, Integer> initializeMultimap5() {
55 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); local
56 multimap.put("foo", 5);
57 multimap.put("bar", 4);
58 multimap.put("foo", 3);
59 multimap.put("cow", 2)
65 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); local
76 Multimap<String, Integer> multimap = initializeMultimap5(); local
81 Multimap<String, Integer> multimap = initializeMultimap5(); local
86 Multimap<String, Integer> multimap = initializeMultimap5(); local
120 Multimap<String, Integer> multimap = initializeMultimap5(); local
135 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); local
158 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); local
164 Multimap<String, Integer> multimap = initializeMultimap5(); local
169 LinkedHashMultimap<String, Integer> multimap = LinkedHashMultimap.create(); local
177 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); local
190 LinkedHashMultimap<String, Integer> multimap local
    [all...]
HashMultimapTest.java 36 HashMultimap<String, Integer> multimap = HashMultimap.create(); local
37 multimap.put("foo", 1);
38 multimap.put("bar", 2);
39 multimap.put("foo", 3);
40 assertEquals(ImmutableSet.of(1, 3), multimap.get("foo"));
41 assertEquals(2, multimap.expectedValuesPerKey);
45 HashMultimap<String, Integer> multimap = HashMultimap.create(); local
46 multimap.put("foo", 1);
47 multimap.put("bar", 2);
48 multimap.put("foo", 3)
55 HashMultimap<String, Integer> multimap = HashMultimap.create(20, 15); local
    [all...]
ArrayListMultimapTest.java 46 Multimap<String, Integer> multimap = create(); local
47 multimap.put("foo", 1);
48 multimap.put("foo", 3);
49 assertTrue(multimap.get("foo") instanceof RandomAccess);
50 assertTrue(multimap.get("bar") instanceof RandomAccess);
57 Multimap<String, Integer> multimap = create(); local
58 multimap.put("foo", 1);
59 multimap.put("foo", 3)
68 Multimap<String, Integer> multimap = create(); local
82 ListMultimap<String, Integer> multimap = create(); local
100 Multimap<String, Integer> multimap = create(); local
110 ArrayListMultimap<String, Integer> multimap local
116 ArrayListMultimap<String, Integer> multimap local
135 ArrayListMultimap<String, Integer> multimap local
143 ArrayListMultimap<String, Integer> multimap local
149 ArrayListMultimap<String, Integer> multimap local
    [all...]
TreeMultimapNaturalTest.java 50 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); local
51 multimap.put("google", 2);
52 multimap.put("google", 6);
53 multimap.put("foo", 3);
54 multimap.put("foo", 1);
55 multimap.put("foo", 7);
56 multimap.put("tree", 4);
57 multimap.put("tree", 0);
58 return multimap;
62 SetMultimap<String, Integer> multimap = create() local
70 TreeMultimap<String, Integer> multimap = createPopulate(); local
77 TreeMultimap<String, Integer> multimap = createPopulate(); local
82 TreeMultimap<String, Integer> multimap = createPopulate(); local
97 TreeMultimap<String, Integer> multimap = createPopulate(); local
109 TreeMultimap<String, Integer> multimap = createPopulate(); local
115 SetMultimap<String, Integer> multimap = create(); local
183 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); local
189 TreeMultimap<String, Integer> multimap = createPopulate(); local
206 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); local
    [all...]
TreeMultimapExplicitTest.java 78 TreeMultimap<String, Integer> multimap = TreeMultimap.create( local
80 multimap.put("google", 2);
81 multimap.put("google", 6);
82 multimap.put(null, 3);
83 multimap.put(null, 1);
84 multimap.put(null, 7);
85 multimap.put("tree", 0);
86 multimap.put("tree", null);
87 return multimap;
113 Multimap<String, Integer> multimap = create() local
124 TreeMultimap<String, Integer> multimap = createPopulate(); local
130 TreeMultimap<String, Integer> multimap = createPopulate(); local
137 TreeMultimap<String, Integer> multimap = createPopulate(); local
142 TreeMultimap<String, Integer> multimap = createPopulate(); local
157 TreeMultimap<String, Integer> multimap = createPopulate(); local
169 TreeMultimap<String, Integer> multimap = createPopulate(); local
174 TreeMultimap<String, Integer> multimap = createPopulate(); local
181 Multimap<String, Integer> multimap = create(); local
196 TreeMultimap<String, Integer> multimap = createPopulate(); local
    [all...]
ImmutableSetMultimapTest.java 41 ImmutableSetMultimap<String, Integer> multimap = new Builder<String, Integer>() local
44 assertEquals(ImmutableSet.of(1), multimap.get("one"));
90 Multimap<String, Integer> multimap = builder.build(); local
91 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo"));
92 assertEquals(ImmutableSet.of(4, 5), multimap.get("bar"));
93 assertEquals(7, multimap.size());
102 Multimap<String, Integer> multimap = builder.build(); local
103 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo"))
122 Multimap<String, Integer> multimap = builder.build(); local
134 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
144 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
158 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
218 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
243 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
263 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
290 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
311 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); local
329 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); local
335 Multimap<String, Integer> multimap = createMultimap(); local
358 Multimap<String, Integer> multimap = ImmutableSetMultimap.of(); local
375 Multimap<String, Integer> multimap = ImmutableSetMultimap.of(); local
381 Multimap<String, Integer> multimap = createMultimap(); local
396 Multimap<String, Integer> multimap = createMultimap(); local
402 Multimap<String, Integer> multimap = createMultimap(); local
458 ImmutableSetMultimap<String, Character> multimap = local
    [all...]
ImmutableListMultimapTest.java 52 ImmutableListMultimap<String, Integer> multimap = new Builder<String, Integer>() local
55 assertEquals(Arrays.asList(1), multimap.get("one"));
101 Multimap<String, Integer> multimap = builder.build(); local
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(); local
114 assertEquals(Arrays.asList(1, 2, 3, 6, 7), multimap.get("foo"))
133 Multimap<String, Integer> multimap = builder.build(); local
145 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
157 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
179 Multimap<String, Integer> multimap = builder.build(); local
241 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
263 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
280 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
298 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
310 Multimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); local
321 Multimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); local
328 Multimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); local
334 Multimap<String, Integer> multimap = createMultimap(); local
357 Multimap<String, Integer> multimap = ImmutableListMultimap.of(); local
374 Multimap<String, Integer> multimap = ImmutableListMultimap.of(); local
385 Multimap<String, Integer> multimap = createMultimap(); local
400 Multimap<String, Integer> multimap = createMultimap(); local
406 Multimap<String, Integer> multimap = createMultimap(); local
463 ImmutableListMultimap<String, Character> multimap = local
    [all...]
  /external/libcxx/test/std/containers/associative/multimap/multimap.cons/
default_recursive.pass.cpp 12 // class multimap
14 // multimap();
20 std::multimap<int, X> m;
21 std::multimap<int, X>::iterator i;
22 std::multimap<int, X>::const_iterator ci;
23 std::multimap<int, X>::reverse_iterator ri;
24 std::multimap<int, X>::const_reverse_iterator cri;
  /external/guava/guava-tests/test/com/google/common/collect/
LinkedHashMultimapTest.java 64 SetMultimap<String, String> multimap = LinkedHashMultimap.create();
66 multimap.put(entry.getKey(), entry.getValue());
68 return multimap;
88 LinkedHashMultimap<String, Integer> multimap = LinkedHashMultimap.create(); local
90 multimap.put("a", z);
94 (LinkedHashMultimap.ValueSet) multimap.backingMap().get("a");
101 private Multimap<String, Integer> initializeMultimap5() {
102 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); local
103 multimap.put("foo", 5)
112 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); local
123 Multimap<String, Integer> multimap = initializeMultimap5(); local
128 Multimap<String, Integer> multimap = initializeMultimap5(); local
133 Multimap<String, Integer> multimap = initializeMultimap5(); local
139 Multimap<String, Integer> multimap = initializeMultimap5(); local
147 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); local
192 Multimap<String, Integer> multimap = initializeMultimap5(); local
207 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); local
230 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); local
236 Multimap<String, Integer> multimap = initializeMultimap5(); local
241 LinkedHashMultimap<String, Integer> multimap = LinkedHashMultimap.create(); local
249 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); local
262 LinkedHashMultimap<String, Integer> multimap local
287 private Multimap<String, Integer> multimap; local
315 private Multimap<String, Integer> multimap; local
335 private Multimap<String, Integer> multimap; local
355 private Multimap<String, Integer> multimap; local
376 private Multimap<String, Integer> multimap; local
413 private Multimap<String, Integer> multimap; local
    [all...]
HashMultimapTest.java 47 SetMultimap<String, String> multimap = HashMultimap.create();
49 multimap.put(entry.getKey(), entry.getValue());
51 return multimap;
74 HashMultimap<String, Integer> multimap = HashMultimap.create(); local
75 multimap.put("foo", 1);
76 multimap.put("bar", 2);
77 multimap.put("foo", 3);
78 assertEquals(ImmutableSet.of(1, 3), multimap.get("foo"));
79 assertEquals(2, multimap.expectedValuesPerKey);
83 HashMultimap<String, Integer> multimap = HashMultimap.create() local
93 HashMultimap<String, Integer> multimap = HashMultimap.create(20, 15); local
    [all...]
ArrayListMultimapTest.java 53 ListMultimap<String, String> multimap = ArrayListMultimap.create();
55 multimap.put(entry.getKey(), entry.getValue());
57 return multimap;
83 Multimap<String, Integer> multimap = create(); local
84 multimap.put("foo", 1);
85 multimap.put("foo", 3);
86 assertTrue(multimap.get("foo") instanceof RandomAccess);
87 assertTrue(multimap.get("bar") instanceof RandomAccess);
94 Multimap<String, Integer> multimap = create() local
105 Multimap<String, Integer> multimap = create(); local
119 ListMultimap<String, Integer> multimap = create(); local
137 Multimap<String, Integer> multimap = create(); local
147 ArrayListMultimap<String, Integer> multimap local
153 ArrayListMultimap<String, Integer> multimap local
172 ArrayListMultimap<String, Integer> multimap local
180 ArrayListMultimap<String, Integer> multimap local
186 ArrayListMultimap<String, Integer> multimap local
    [all...]
SubMapMultimapAsMapImplementsMapTest.java 40 TreeMultimap<String, Integer> multimap local
43 multimap.put("a", -1);
44 multimap.put("a", -3);
45 multimap.put("z", -2);
46 return multimap;
54 TreeMultimap<String, Integer> multimap = createMultimap(); local
55 multimap.put("f", 1);
56 multimap.put("f", 2);
57 multimap.put("g", 3);
58 multimap.put("h", 4)
    [all...]
ImmutableListMultimapTest.java 76 ImmutableListMultimap<String, Integer> multimap = new Builder<String, Integer>() local
79 assertEquals(Arrays.asList(1), multimap.get("one"));
125 Multimap<String, Integer> multimap = builder.build(); local
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(); local
138 assertEquals(Arrays.asList(1, 2, 3, 6, 7), multimap.get("foo"))
157 Multimap<String, Integer> multimap = builder.build(); local
169 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
181 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
203 Multimap<String, Integer> multimap = builder.build(); local
265 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
287 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
304 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
322 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
334 Multimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); local
345 Multimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); local
352 Multimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); local
358 Multimap<String, Integer> multimap = createMultimap(); local
381 Multimap<String, Integer> multimap = ImmutableListMultimap.of(); local
398 Multimap<String, Integer> multimap = ImmutableListMultimap.of(); local
409 Multimap<String, Integer> multimap = createMultimap(); local
424 Multimap<String, Integer> multimap = createMultimap(); local
430 Multimap<String, Integer> multimap = createMultimap(); local
487 ImmutableListMultimap<String, Character> multimap = local
512 Multimap<String, Integer> multimap = createMultimap(); local
528 Multimap<String, Integer> multimap = ImmutableListMultimap.of(); local
    [all...]
TreeMultimapExplicitTest.java 80 TreeMultimap<String, Integer> multimap = TreeMultimap.create( local
82 multimap.put("google", 2);
83 multimap.put("google", 6);
84 multimap.put(null, 3);
85 multimap.put(null, 1);
86 multimap.put(null, 7);
87 multimap.put("tree", 0);
88 multimap.put("tree", null);
89 return multimap;
115 Multimap<String, Integer> multimap = create() local
126 TreeMultimap<String, Integer> multimap = createPopulate(); local
132 TreeMultimap<String, Integer> multimap = createPopulate(); local
139 TreeMultimap<String, Integer> multimap = createPopulate(); local
144 TreeMultimap<String, Integer> multimap = createPopulate(); local
159 TreeMultimap<String, Integer> multimap = createPopulate(); local
171 TreeMultimap<String, Integer> multimap = createPopulate(); local
176 TreeMultimap<String, Integer> multimap = createPopulate(); local
183 Multimap<String, Integer> multimap = create(); local
198 TreeMultimap<String, Integer> multimap = createPopulate(); local
211 TreeMultimap<String, Integer> multimap = createPopulate(); local
    [all...]
LinkedListMultimapTest.java 68 ListMultimap<String, String> multimap = LinkedListMultimap.create();
70 multimap.put(entry.getKey(), entry.getValue());
72 return multimap;
98 Multimap<String, Integer> multimap = create(); local
99 multimap.put("foo", 1);
100 multimap.put("foo", 3);
101 assertFalse(multimap.get("foo") instanceof RandomAccess);
102 assertFalse(multimap.get("bar") instanceof RandomAccess);
110 Multimap<String, Integer> multimap = create() local
122 Multimap<String, Integer> multimap = create(); local
132 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local
143 LinkedListMultimap<String, Integer> multimap local
320 ListMultimap<String, Integer> multimap = create(); local
360 private LinkedListMultimap<String, Integer> multimap; local
381 private Multimap<String, Integer> multimap; local
405 private LinkedListMultimap<String, Integer> multimap; local
428 private Multimap<String, Integer> multimap; local
466 private Multimap<String, Integer> multimap; local
    [all...]
ForwardingListMultimapTest.java 34 final ListMultimap<String, Boolean> multimap = local
38 return multimap;
ForwardingSetMultimapTest.java 34 final SetMultimap<String, Boolean> multimap = local
38 return multimap;
  /external/guava/guava-testlib/src/com/google/common/collect/testing/google/
MultimapSizeTester.java 25 import com.google.common.collect.Multimap;
33 * Tester for the {@code size} methods of {@code Multimap} and its views.
38 public class MultimapSizeTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
42 Multimap<K, V> multimap = multimap(); local
43 assertEquals(expectedSize, multimap.size());
46 for (Entry<K, V> entry : multimap.entries()) {
47 assertTrue(multimap.containsEntry(entry.getKey(), entry.getValue()));
53 for (Entry<K, Collection<V>> entry2 : multimap.asMap().entrySet())
    [all...]
MultimapContainsKeyTester.java 24 import com.google.common.collect.Multimap;
29 * Tester for the {@code containsKey} methods of {@code Multimap} and its {@code asMap()} view.
35 extends AbstractMultimapTester<K, V, Multimap<K, V>> {
38 assertTrue(multimap().containsKey(sampleKeys().e0));
42 assertFalse(multimap().containsKey(sampleKeys().e3));
46 for (K k : multimap().keySet()) {
47 assertTrue(multimap().containsKey(k));
53 assertEquals(!multimap().get(k).isEmpty(), multimap().containsKey(k));
59 assertEquals(multimap().containsKey(k), multimap().asMap().containsKey(k))
    [all...]
MultimapClearTester.java 24 import com.google.common.collect.Multimap;
33 * Tests for {@link Multimap#clear()}.
38 public class MultimapClearTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
43 multimap().clear();
49 assertEquals(0, multimap().size());
50 assertTrue(multimap().isEmpty());
51 assertEquals(multimap(), getSubjectGenerator().create()); method
52 ASSERT.that(multimap().entries()).isEmpty();
53 ASSERT.that(multimap().asMap()).isEmpty();
54 ASSERT.that(multimap().keySet()).isEmpty()
    [all...]
UnmodifiableCollectionTests.java 28 import com.google.common.collect.Multimap;
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
    [all...]
AbstractListMultimapTester.java 39 ASSERT.that(multimap().get(key)).has().exactlyAs(values).inOrder();
42 ASSERT.that(multimap().asMap().get(key)).has().exactlyAs(values).inOrder();
43 assertFalse(multimap().isEmpty());
45 ASSERT.that(multimap().asMap().get(key)).isNull();
48 assertEquals(values.size(), multimap().get(key).size());
49 assertEquals(values.size() > 0, multimap().containsKey(key));
50 assertEquals(values.size() > 0, multimap().keySet().contains(key));
51 assertEquals(values.size() > 0, multimap().keys().contains(key));
SortedSetMultimapAsMapTester.java 32 * @param <K> The key type of the tested multimap.
33 * @param <V> The value type of the tested multimap.
39 for (Collection<V> valueCollection : multimap().asMap().values()) {
41 assertEquals(multimap().valueComparator(), valueSet.comparator());
46 for (K key : multimap().keySet()) {
47 SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key);
48 assertEquals(multimap().valueComparator(), valueSet.comparator());
54 List<K> keys = new ArrayList<K>(multimap().keySet());
57 SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().remove(key);
58 assertEquals(multimap().valueComparator(), valueSet.comparator())
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/multimap/
types.pass.cpp 14 // class multimap
40 static_assert((std::is_same<std::multimap<int, double>::key_type, int>::value), "");
41 static_assert((std::is_same<std::multimap<int, double>::mapped_type, double>::value), "");
42 static_assert((std::is_same<std::multimap<int, double>::value_type, std::pair<const int, double> >::value), "");
43 static_assert((std::is_same<std::multimap<int, double>::key_compare, std::less<int> >::value), "");
44 static_assert((std::is_same<std::multimap<int, double>::allocator_type, std::allocator<std::pair<const int, double> > >::value), "");
45 static_assert((std::is_same<std::multimap<int, double>::reference, std::pair<const int, double>&>::value), "");
46 static_assert((std::is_same<std::multimap<int, double>::const_reference, const std::pair<const int, double>&>::value), "");
47 static_assert((std::is_same<std::multimap<int, double>::pointer, std::pair<const int, double>*>::value), "");
48 static_assert((std::is_same<std::multimap<int, double>::const_pointer, const std::pair<const int, double>*>::value), "")
    [all...]
  /external/guava/guava-gwt/src/com/google/common/collect/
LinkedHashMultimap_CustomFieldSerializer.java 40 LinkedHashMultimap<Object, Object> multimap = LinkedHashMultimap.create(); local
42 multimap.valueSetCapacity = stream.readInt();
48 map.put(key, multimap.createCollection(key));
56 multimap.setMap(map);
58 return multimap;
62 LinkedHashMultimap<?, ?> multimap) throws SerializationException {
63 stream.writeInt(multimap.valueSetCapacity);
64 stream.writeInt(multimap.keySet().size());
65 for (Object key : multimap.keySet()) {
68 stream.writeInt(multimap.size())
    [all...]

Completed in 329 milliseconds

1 2 3 4 5 6 7 8 91011>>