/external/guava/guava-tests/test/com/google/common/collect/ |
SortedIterablesTest.java | 39 Multisets.immutableEntry(2, 2), Multisets.immutableEntry(3, 1), 40 Multisets.immutableEntry(4, 1), Multisets.immutableEntry(5, 1), 41 Multisets.immutableEntry(8, 2), Multisets.immutableEntry(9, 1)); 49 Multisets.immutableEntry(2, 2), Multisets.immutableEntry(3, 1), 50 Multisets.immutableEntry(4, 1), Multisets.immutableEntry(5, 1) [all...] |
AbstractSetMultimapTest.java | 87 Maps.immutableEntry( 97 array[1] = Maps.immutableEntry("another", "entry"); 162 Maps.immutableEntry("foo", 3), 163 Maps.immutableEntry("bar", 3), 164 Maps.immutableEntry("foo", 1)); 173 Maps.immutableEntry("foo", 3), 174 Maps.immutableEntry("bar", 3), 175 Maps.immutableEntry("bar", 1)); 180 Maps.immutableEntry("foo", 3), 181 Maps.immutableEntry("bar", 3) [all...] |
WellBehavedMapTest.java | 39 assertTrue(map.entrySet().contains(Maps.immutableEntry(Foo.X, 1))); 40 assertTrue(map.entrySet().contains(Maps.immutableEntry(Foo.Y, new Integer(2)))); 43 assertFalse(map.entrySet().contains(Maps.immutableEntry(Foo.X, 5))); 46 assertFalse(map.entrySet().contains(Maps.immutableEntry(Foo.T, 0))); 95 Map.Entry<Foo, Integer> entry = Maps.immutableEntry(Foo.Y, 2); 102 assertFalse(entrySet.remove(Maps.immutableEntry(Foo.T, 4))); 105 assertFalse(entrySet.remove(Maps.immutableEntry(Foo.Z, 5)));
|
AbstractBiMapTest.java | 255 entrySet.add(Maps.immutableEntry(1, "one")); 263 entrySet.addAll(Collections.singleton(Maps.immutableEntry(1, "one"))); 280 assertFalse(entrySet.contains(Maps.immutableEntry(1, "one"))); 282 assertTrue(entrySet.contains(Maps.immutableEntry(1, "one"))); 283 assertFalse(entrySet.contains(Maps.immutableEntry(1, ""))); 284 assertFalse(entrySet.contains(Maps.immutableEntry(0, "one"))); 285 assertFalse(entrySet.contains(Maps.immutableEntry(1, null))); 286 assertFalse(entrySet.contains(Maps.immutableEntry(null, "one"))); 287 assertFalse(entrySet.contains(Maps.immutableEntry(null, null))); 290 assertTrue(entrySet.contains(Maps.immutableEntry(1, "one"))) [all...] |
LinkedHashMultimapTest.java | 98 assertEquals(Maps.immutableEntry("foo", 5), entryIterator.next()); 99 assertEquals(Maps.immutableEntry("bar", 4), entryIterator.next()); 100 assertEquals(Maps.immutableEntry("foo", 3), entryIterator.next()); 101 assertEquals(Maps.immutableEntry("cow", 2), entryIterator.next()); 102 assertEquals(Maps.immutableEntry("bar", 1), entryIterator.next()); 230 Maps.immutableEntry("foo", 2), 231 Maps.immutableEntry("foo", 3), 232 Maps.immutableEntry("bar", 4), 233 Maps.immutableEntry("bar", 5), 234 Maps.immutableEntry("foo", 6))) [all...] |
TreeMultimapExplicitTest.java | 152 Maps.immutableEntry((String) null, 7), 153 Maps.immutableEntry((String) null, 3), 154 Maps.immutableEntry((String) null, 1), 155 Maps.immutableEntry("tree", (Integer) null), 156 Maps.immutableEntry("tree", 0), 157 Maps.immutableEntry("google", 6), Maps.immutableEntry("google", 2));
|
ImmutableMultimapTest.java | 40 .put(Maps.immutableEntry("one", 1)) 48 builder.put(Maps.immutableEntry("one", (Integer) null)); 53 builder.put(Maps.immutableEntry((String) null, 1));
|
MapConstraintsTest.java | 119 Maps.immutableEntry(TEST_KEY, TEST_VALUE), 120 Maps.immutableEntry("foo", 1), 121 Maps.immutableEntry("bar", 2), 122 Maps.immutableEntry("baz", 3)); 167 Maps.immutableEntry(TEST_KEY, TEST_VALUE), 168 Maps.immutableEntry("foo", 1), 169 Maps.immutableEntry("bar", 2), 170 Maps.immutableEntry("baz", 3)); 244 Maps.immutableEntry(TEST_KEY, TEST_VALUE), 245 Maps.immutableEntry("foo", 1) [all...] |
AbstractMultimapTest.java | 544 Maps.immutableEntry("foo", 1), 545 Maps.immutableEntry("foo", nullValue()), 546 Maps.immutableEntry(nullKey(), 3)); 603 Maps.immutableEntry("foo", multimap.get("foo")))); 605 Maps.immutableEntry("bar", multimap.get("foo")))); 607 Maps.immutableEntry("bar", null))); 609 Maps.immutableEntry("foo", null))); 611 Maps.immutableEntry("foo", asList(1, 4)))); 650 assertTrue(entries.contains(Multisets.immutableEntry("foo", 3))); 651 assertFalse(entries.contains(Multisets.immutableEntry("foo", 2))) [all...] |
LinkedListMultimapTest.java | 333 Maps.immutableEntry("foo", 99), 334 Maps.immutableEntry("foo", 88), 335 Maps.immutableEntry("bar", 77)); 339 Maps.immutableEntry("foo", 2), 340 Maps.immutableEntry("foo", 3), 341 Maps.immutableEntry("bar", 4), 342 Maps.immutableEntry("bar", 5), 343 Maps.immutableEntry("foo", 6)); 438 Maps.immutableEntry("foo", 440 Maps.immutableEntry("bar" [all...] |
ImmutableClassToInstanceMapTest.java | 162 Maps.immutableEntry((Class) Integer.class, (Number) 0); 164 Maps.immutableEntry((Class) Number.class, (Number) 1); 166 Maps.immutableEntry((Class) Double.class, (Number) 2.0); 168 Maps.immutableEntry((Class) Byte.class, (Number) (byte) 0x03); 170 Maps.immutableEntry((Class) Long.class, (Number) 0x0FF1C1AL);
|
MultimapsTest.java | 19 import static com.google.common.collect.Maps.immutableEntry; 434 Maps.immutableEntry("foo", 1)); 436 Maps.immutableEntry( 487 assertFalse(entries.contains(Maps.immutableEntry("foo", 489 assertFalse(entries.remove(Maps.immutableEntry("foo", 491 assertFalse(entries.contains(Maps.immutableEntry("foo", 493 assertFalse(entries.remove(Maps.immutableEntry("foo", 495 assertFalse(entries.contains(Maps.immutableEntry("foo", 497 assertFalse(entries.remove(Maps.immutableEntry("foo", 500 assertTrue(entries.contains(Maps.immutableEntry("foo" [all...] |
TreeBasedTableTest.java | 388 assertTrue(entrySet.contains(Maps.immutableEntry(10, 'X'))); 389 assertTrue(entrySet.contains(Maps.immutableEntry(20, 'X'))); 390 assertFalse(entrySet.contains(Maps.immutableEntry(15, 'X'))); 392 assertFalse(entrySet.contains(Maps.immutableEntry(10, 'X'))); 393 assertTrue(entrySet.contains(Maps.immutableEntry(20, 'X'))); 394 assertFalse(entrySet.contains(Maps.immutableEntry(15, 'X'))); 405 assertFalse(entrySet.remove(Maps.immutableEntry(10, 'X'))); 406 assertTrue(entrySet.remove(Maps.immutableEntry(20, 'X'))); 407 assertFalse(entrySet.remove(Maps.immutableEntry(15, 'X'))); 409 assertTrue(entrySet.remove(Maps.immutableEntry(10, 'X'))) [all...] |
ImmutableSortedMapTest.java | 345 .put(Maps.immutableEntry("one", 1)) 354 builder.put(Maps.immutableEntry("one", (Integer) null)); 359 builder.put(Maps.immutableEntry((String) null, 1)); 748 Maps.immutableEntry("a", new IntHolder(3)))); 769 ASSERT.that(map.entrySet()).hasContentsInOrder(Maps.immutableEntry("one", 1), 770 Maps.immutableEntry("three", 3)); 777 ASSERT.that(map.entrySet()).hasContentsInOrder(Maps.immutableEntry("one", 1)); 784 ASSERT.that(map.entrySet()).hasContentsInOrder(Maps.immutableEntry("three", 3), 785 Maps.immutableEntry("two", 2)); 792 ASSERT.that(map.entrySet()).hasContentsInOrder(Maps.immutableEntry("two", 2)) [all...] |
AbstractMultisetTest.java | 645 assertTrue(es.contains(Multisets.immutableEntry("a", 3))); 647 assertFalse(es.contains(Maps.immutableEntry("a", 3))); 648 assertFalse(es.contains(Multisets.immutableEntry("a", 2))); 649 assertFalse(es.contains(Multisets.immutableEntry("b", 3))); 650 assertFalse(es.contains(Multisets.immutableEntry("b", 0))); 657 assertFalse(es.remove(Maps.immutableEntry("a", 3))); 658 assertFalse(es.remove(Multisets.immutableEntry("a", 2))); 659 assertFalse(es.remove(Multisets.immutableEntry("b", 3))); 660 assertFalse(es.remove(Multisets.immutableEntry("b", 0))); 662 assertTrue(es.remove(Multisets.immutableEntry("a", 3))) [all...] |
TreeMultimapNaturalTest.java | 114 Maps.immutableEntry("foo", 1), 115 Maps.immutableEntry("foo", 3), 116 Maps.immutableEntry("foo", 7), 117 Maps.immutableEntry("google", 2), 118 Maps.immutableEntry("google", 6), 119 Maps.immutableEntry("tree", 0), 120 Maps.immutableEntry("tree", 4)); 326 Maps.immutableEntry("bar", 4), 327 Maps.immutableEntry("bar", 5), 328 Maps.immutableEntry("foo", 2) [all...] |
MapsTransformValuesTest.java | 282 assertTrue(entries.contains(Maps.immutableEntry("a", true))); 283 assertTrue(entries.contains(Maps.immutableEntry("b", (Boolean) null))); 285 Maps.immutableEntry((String) null, (Boolean) null))); 287 assertFalse(entries.contains(Maps.immutableEntry("c", (Boolean) null))); 288 assertFalse(entries.contains(Maps.immutableEntry((String) null, true)));
|
MultisetsTest.java | 44 /* See MultisetsImmutableEntryTest for immutableEntry() tests. */ 86 Multisets.immutableEntry("foo", 1), Multisets.immutableEntry((String) null, 1)); 236 Multisets.immutableEntry("a", 3), Multisets.immutableEntry("c", 2), 237 Multisets.immutableEntry("b", 1));
|
MultisetsImmutableEntryTest.java | 27 * Tests for {@link Multisets#immutableEntry}. 36 return Multisets.immutableEntry(element, count);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
MultisetWritesTester.java | 134 Multisets.immutableEntry(samples.e0, 1), iterator.next()); 164 Multisets.immutableEntry(samples.e0, 1))); 176 Multisets.immutableEntry(samples.e0, 2))); 188 Collections.singleton(Multisets.immutableEntry(samples.e0, 1)))); 200 Collections.singleton(Multisets.immutableEntry(samples.e0, 2)))); 220 Collections.singleton(Multisets.immutableEntry(samples.e0, 1)))); 232 Collections.singleton(Multisets.immutableEntry(samples.e0, 2))));
|
MultisetReadsTester.java | 81 Multisets.immutableEntry(samples.e0, 1))); 87 Multisets.immutableEntry(samples.e3, 0)));
|
/external/guava/guava/src/com/google/common/collect/ |
AbstractSortedMultiset.java | 85 result = Multisets.immutableEntry(result.getElement(), result.getCount()); 97 result = Multisets.immutableEntry(result.getElement(), result.getCount());
|
RegularImmutableMultiset.java | 83 return Multisets.immutableEntry(mapEntry.getKey(), mapEntry.getValue());
|
/external/guava/guava-gwt/src/com/google/common/collect/ |
LinkedHashMultimap_CustomFieldSerializer.java | 47 multimap.linkedEntries.add(Maps.immutableEntry(key, value));
|
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheReferencesTest.java | 19 import static com.google.common.collect.Maps.immutableEntry; 99 assertEquals(ImmutableSet.of(immutableEntry(key1, value1), immutableEntry(key2, value2)), 118 assertEquals(ImmutableSet.of(immutableEntry(key2, value2)), cache.asMap().entrySet());
|