/external/guava/guava-tests/test/com/google/common/collect/ |
LinkedHashMultimapTest.java | 46 @Override protected Multimap<String, Integer> create() { 50 private Multimap<String, Integer> initializeMultimap5() { 51 Multimap<String, Integer> multimap = getMultimap(); local 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(); local 71 Multimap<String, Integer> multimap = initializeMultimap5(); local 76 Multimap<String, Integer> multimap = initializeMultimap5(); local 82 Multimap<String, Integer> multimap = initializeMultimap5(); local 118 Multimap<String, Integer> multimap = initializeMultimap5(); local 133 Multimap<String, Integer> multimap = getMultimap(); local 156 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); local 162 Multimap<String, Integer> multimap = initializeMultimap5(); local 167 LinkedHashMultimap<String, Integer> multimap = LinkedHashMultimap.create(); local 176 Multimap<String, Integer> multimap = createSample(); local 184 LinkedHashMultimap<String, Integer> multimap local 210 private Multimap<String, Integer> multimap; local 238 private Multimap<String, Integer> multimap; local 258 private Multimap<String, Integer> multimap; local 278 private Multimap<String, Integer> multimap; local 299 private Multimap<String, Integer> multimap; local 336 private Multimap<String, Integer> multimap; local [all...] |
AbstractListMultimapTest.java | 45 * Test adding duplicate key-value pairs to multimap. 48 Multimap<String, Integer> multimap = create(); local 49 multimap.put("foo", 1); 50 multimap.put("foo", 3); 51 multimap.put("bar", 3); 52 multimap.put("foo", 1); 53 assertEquals(4, multimap.size()); 54 assertTrue(multimap.containsEntry("foo", 1)); 55 multimap.remove("foo", 1) 64 Multimap<String, Integer> multimap = create(); local 72 Multimap<String, Integer> multimap = create(); local 91 Multimap<String, Integer> multimap = create(); local 98 Multimap<String, Integer> multimap = getMultimap(); local 122 Multimap<String, Integer> multimap = create(); local 134 Multimap<String, Integer> multimap = create(); local 149 Multimap<String, Integer> multimap = create(); local 164 Multimap<String, Integer> multimap = create(); local 177 ListMultimap<String, Integer> multimap = create(); local 205 ListMultimap<String, Integer> multimap = create(); local 223 ListMultimap<String, Integer> multimap = create(); local 242 ListMultimap<String, Integer> multimap = create(); local 266 ListMultimap<String, Integer> multimap = create(); local 296 ListMultimap<String, Integer> multimap = create(); local 311 ListMultimap<String, Integer> multimap = create(); local 335 ListMultimap<String, Integer> multimap = create(); local 355 ListMultimap<String, Integer> multimap = create(); local 371 ListMultimap<String, Integer> multimap = create(); local 391 ListMultimap<String, Integer> multimap = create(); local 413 private ListMultimap<String, Integer> multimap; local 484 ListMultimap<String, Integer> multimap = create(); local 500 ListMultimap<String, Integer> multimap = create(); local 516 ListMultimap<String, Integer> multimap = create(); local [all...] |
ArrayListMultimapTest.java | 44 Multimap<String, Integer> multimap = create(); local 45 multimap.put("foo", 1); 46 multimap.put("foo", 3); 47 assertTrue(multimap.get("foo") instanceof RandomAccess); 48 assertTrue(multimap.get("bar") instanceof RandomAccess); 55 Multimap<String, Integer> multimap = create(); local 56 multimap.put("foo", 1); 57 multimap.put("foo", 3) 66 Multimap<String, Integer> multimap = create(); local 80 ListMultimap<String, Integer> multimap = create(); local 98 Multimap<String, Integer> multimap = createSample(); local 105 ArrayListMultimap<String, Integer> multimap local 111 ArrayListMultimap<String, Integer> multimap local 130 ArrayListMultimap<String, Integer> multimap local 138 ArrayListMultimap<String, Integer> multimap local 144 ArrayListMultimap<String, Integer> multimap local [all...] |
AbstractMultimapTest.java | 40 * Tests for {@code Multimap} implementations. Caution: when subclassing avoid 48 private Multimap<String, Integer> multimap; field in class:AbstractMultimapTest 50 protected abstract Multimap<String, Integer> create(); 52 protected Multimap<String, Integer> createSample() { 53 Multimap<String, Integer> sample = create(); 62 multimap = create(); 65 protected Multimap<String, Integer> getMultimap() { 66 return multimap; 88 * Validate multimap size by calling {@code size()} and also by iteratin [all...] |
HashMultimapTest.java | 28 @Override protected Multimap<String, Integer> create() { 37 HashMultimap<String, Integer> multimap = HashMultimap.create(); local 38 multimap.put("foo", 1); 39 multimap.put("bar", 2); 40 multimap.put("foo", 3); 41 assertEquals(ImmutableSet.of(1, 3), multimap.get("foo")); 42 assertEquals(8, multimap.expectedValuesPerKey); 46 Multimap<String, Integer> multimap = createSample(); local 47 HashMultimap<String, Integer> copy = HashMultimap.create(multimap); 53 HashMultimap<String, Integer> multimap = HashMultimap.create(20, 15); local [all...] |
AbstractSetMultimapTest.java | 38 Multimap<String, Integer> multimap = getMultimap(); local 39 assertTrue(multimap.put("foo", 1)); 40 assertTrue(multimap.put("foo", 3)); 41 assertTrue(multimap.put("bar", 3)); 42 assertFalse(multimap.put("foo", 1)); 44 assertTrue(multimap.containsEntry("foo", 1)); 45 assertTrue(multimap.remove("foo", 1)); 47 assertFalse(multimap.containsEntry("foo", 1)); 51 Multimap<String, Integer> multimap = getMultimap() local 58 Multimap<String, Integer> multimap = getMultimap(); local 79 Multimap<String, Integer> multimap = getMultimap(); local 105 Multimap<String, Integer> multimap = create(); local 128 Multimap<String, Integer> multimap = getMultimap(); local 136 Multimap<String, Integer> multimap = create(); local 155 Multimap<String, Integer> multimap = getMultimap(); 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...] |
ImmutableSetMultimapTest.java | 44 ImmutableSetMultimap<String, Integer> multimap = new Builder<String, Integer>() local 47 assertEquals(ImmutableSet.of(1), multimap.get("one")); 93 Multimap<String, Integer> multimap = builder.build(); local 94 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo")); 95 assertEquals(ImmutableSet.of(4, 5), multimap.get("bar")); 96 assertEquals(7, multimap.size()); 105 Multimap<String, Integer> multimap = builder.build(); local 106 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo")) 125 Multimap<String, Integer> multimap = builder.build(); local 137 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local 147 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local 161 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local 221 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local 241 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local 268 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local 289 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); local 307 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); local 313 Multimap<String, Integer> multimap = createMultimap(); local 336 Multimap<String, Integer> multimap = ImmutableSetMultimap.of(); local 353 Multimap<String, Integer> multimap = ImmutableSetMultimap.of(); local 359 Multimap<String, Integer> multimap = createMultimap(); local 374 Multimap<String, Integer> multimap = createMultimap(); local 380 Multimap<String, Integer> multimap = createMultimap(); local 436 ImmutableSetMultimap<String, Character> multimap = local 454 Multimap<String, Integer> multimap = createMultimap(); local 470 Multimap<String, Integer> multimap = ImmutableSetMultimap.of(); local [all...] |
ImmutableListMultimapTest.java | 44 ImmutableListMultimap<String, Integer> multimap = new Builder<String, Integer>() local 47 assertEquals(Arrays.asList(1), multimap.get("one")); 93 Multimap<String, Integer> multimap = builder.build(); local 94 assertEquals(Arrays.asList(1, 2, 3, 6, 7), multimap.get("foo")); 95 assertEquals(Arrays.asList(4, 5), multimap.get("bar")); 96 assertEquals(7, multimap.size()); 105 Multimap<String, Integer> multimap = builder.build(); local 106 assertEquals(Arrays.asList(1, 2, 3, 6, 7), multimap.get("foo")) 125 Multimap<String, Integer> multimap = builder.build(); local 137 ImmutableListMultimap<String, Integer> multimap = builder.build(); local 149 ImmutableListMultimap<String, Integer> multimap = builder.build(); local 171 Multimap<String, Integer> multimap = builder.build(); local 233 ImmutableListMultimap<String, Integer> multimap = builder.build(); local 250 ImmutableListMultimap<String, Integer> multimap = builder.build(); local 268 ImmutableListMultimap<String, Integer> multimap = builder.build(); local 280 Multimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); local 291 Multimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); local 298 Multimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); local 304 Multimap<String, Integer> multimap = createMultimap(); local 327 Multimap<String, Integer> multimap = ImmutableListMultimap.of(); local 344 Multimap<String, Integer> multimap = ImmutableListMultimap.of(); local 355 Multimap<String, Integer> multimap = createMultimap(); local 370 Multimap<String, Integer> multimap = createMultimap(); local 376 Multimap<String, Integer> multimap = createMultimap(); local 433 ImmutableListMultimap<String, Character> multimap = local 458 Multimap<String, Integer> multimap = createMultimap(); local 474 Multimap<String, Integer> multimap = ImmutableListMultimap.of(); local [all...] |
TreeMultimapNaturalTest.java | 50 @Override protected Multimap<String, Integer> create() { 68 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); local 69 multimap.put("google", 2); 70 multimap.put("google", 6); 71 multimap.put("foo", 3); 72 multimap.put("foo", 1); 73 multimap.put("foo", 7); 74 multimap.put("tree", 4); 75 multimap.put("tree", 0); 76 return multimap; 85 TreeMultimap<String, Integer> multimap = createPopulate(); local 92 TreeMultimap<String, Integer> multimap = createPopulate(); local 97 TreeMultimap<String, Integer> multimap = createPopulate(); local 112 TreeMultimap<String, Integer> multimap = createPopulate(); local 124 TreeMultimap<String, Integer> multimap = createPopulate(); local 130 TreeMultimap<String, Integer> multimap = createPopulate(); local 139 TreeMultimap<String, Integer> multimap = createPopulate(); local 148 TreeMultimap<String, Integer> multimap = createPopulate(); local 154 TreeMultimap<String, Integer> multimap = createPopulate(); local 168 TreeMultimap<String, Integer> multimap = createPopulate(); local 182 TreeMultimap<String, Integer> multimap = createPopulate(); local 194 Multimap<String, Integer> multimap = createSample(); local 260 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); local 266 TreeMultimap<String, Integer> multimap = createPopulate(); local 278 TreeMultimap<String, Integer> multimap = createPopulate(); local 306 private Multimap<String, Integer> multimap; local 333 private Multimap<String, Integer> multimap; local 353 private Multimap<String, Integer> multimap; local 373 private Multimap<String, Integer> multimap; local 394 private Multimap<String, Integer> multimap; local 439 private Multimap<String, Integer> multimap; local 463 TreeMultimap<String, Integer> multimap = createPopulate(); local 474 TreeMultimap<DerivedComparable, DerivedComparable> multimap = TreeMultimap.create(); local 475 assertEquals(ImmutableMultimap.of(), multimap); local 494 TreeMultimap<LegacyComparable, LegacyComparable> multimap local 496 assertEquals(ImmutableMultimap.of(), multimap); local 517 TreeMultimap<String, Integer> multimap = createPopulate(); local 534 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); local [all...] |
TreeMultimapExplicitTest.java | 68 @Override protected Multimap<String, Integer> create() { 77 TreeMultimap<String, Integer> multimap = TreeMultimap.create( local 79 multimap.put("google", 2); 80 multimap.put("google", 6); 81 multimap.put(null, 3); 82 multimap.put(null, 1); 83 multimap.put(null, 7); 84 multimap.put("tree", 0); 85 multimap.put("tree", null); 86 return multimap; 117 TreeMultimap<String, Integer> multimap = createPopulate(); local 123 TreeMultimap<String, Integer> multimap = createPopulate(); local 130 TreeMultimap<String, Integer> multimap = createPopulate(); local 135 TreeMultimap<String, Integer> multimap = createPopulate(); local 150 TreeMultimap<String, Integer> multimap = createPopulate(); local 161 TreeMultimap<String, Integer> multimap = createPopulate(); local 166 TreeMultimap<String, Integer> multimap = createPopulate(); local 173 Multimap<String, Integer> multimap = createSample(); local 183 TreeMultimap<String, Integer> multimap = createPopulate(); local 196 TreeMultimap<String, Integer> multimap = createPopulate(); local [all...] |
LinkedListMultimapTest.java | 60 Multimap<String, Integer> multimap = create(); local 61 multimap.put("foo", 1); 62 multimap.put("foo", 3); 63 assertFalse(multimap.get("foo") instanceof RandomAccess); 64 assertFalse(multimap.get("bar") instanceof RandomAccess); 72 Multimap<String, Integer> multimap = create(); local 73 multimap.put("foo", 1); 74 multimap.put("foo", 3) 84 Multimap<String, Integer> multimap = create(); local 94 Multimap<String, Integer> multimap = createSample(); local 101 LinkedListMultimap<String, Integer> multimap local 288 ListMultimap<String, Integer> multimap = create(); local 306 ListMultimap<String, Integer> multimap = create(); local 346 private LinkedListMultimap<String, Integer> multimap; local 367 private Multimap<String, Integer> multimap; local 391 private LinkedListMultimap<String, Integer> multimap; local 414 private Multimap<String, Integer> multimap; local 452 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;
|
ForwardingSortedSetMultimapTest.java | 34 final SortedSetMultimap<String, Boolean> multimap = local 38 return multimap;
|
MultimapCollectionTest.java | 66 * Run collection tests on {@link Multimap} implementations. 132 Multimap<Integer, String> multimap, String[] elements) { 133 multimap.put(2, "foo"); 135 multimap.put(3, element); 140 Multimap<String, Integer> multimap, String[] elements) { 142 multimap.put(element, 2); 143 multimap.put(element, 3); 148 Multimap<Integer, String> multimap, String[] elements) 222 Multimap<String, Integer> multimap = createMultimap(); local [all...] |
AbstractMultimapAsMapImplementsMapTest.java | 26 * Test {@link Multimap#asMap()} for an arbitrary multimap with 41 protected void populate(Multimap<String, Integer> multimap) { 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) [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...] |
max_size.pass.cpp | 12 // class multimap 24 typedef std::multimap<int, double> M; 30 typedef std::multimap<int, double, std::less<int>, min_allocator<std::pair<const int, double>>> M;
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
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...] |
/external/guava/guava-gwt/src/com/google/common/collect/ |
LinkedHashMultimap_CustomFieldSerializer.java | 38 LinkedHashMultimap<Object, Object> multimap = local 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()) {
|
TreeMultimap_CustomFieldSerializer.java | 48 TreeMultimap<?, ?> multimap) throws SerializationException { 49 out.writeObject(multimap.keyComparator()); 50 out.writeObject(multimap.valueComparator()); 51 Multimap_CustomFieldSerializerBase.serialize(out, multimap);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/multimap/multimap.cons/ |
default.pass.cpp | 12 // class multimap 14 // multimap(); 24 std::multimap<int, double> m; 30 std::multimap<int, double, std::less<int>, min_allocator<std::pair<const int, double>>> m;
|
default_noexcept.pass.cpp | 12 // multimap() 37 typedef std::multimap<MoveOnly, MoveOnly> C; 41 typedef std::multimap<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; 45 typedef std::multimap<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; 49 typedef std::multimap<MoveOnly, MoveOnly, some_comp<MoveOnly>> C;
|
dtor_noexcept.pass.cpp | 12 // ~multimap() // implied noexcept; 35 typedef std::multimap<MoveOnly, MoveOnly> C; 39 typedef std::multimap<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; 43 typedef std::multimap<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; 47 typedef std::multimap<MoveOnly, MoveOnly, some_comp<MoveOnly>> C;
|