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

1 2 3 4

  /external/guava/guava-tests/test/com/google/common/collect/
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)));
TreeMultimapExplicitTest.java 161 Maps.immutableEntry((String) null, 7),
162 Maps.immutableEntry((String) null, 3),
163 Maps.immutableEntry((String) null, 1),
164 Maps.immutableEntry("tree", (Integer) null),
165 Maps.immutableEntry("tree", 0),
166 Maps.immutableEntry("google", 6),
167 Maps.immutableEntry("google", 2)).inOrder();
MapConstraintsTest.java 119 Maps.immutableEntry(TEST_KEY, TEST_VALUE),
120 Maps.immutableEntry("foo", 1),
121 Maps.immutableEntry("bar", 2),
122 Maps.immutableEntry("baz", 3)).inOrder();
167 Maps.immutableEntry(TEST_KEY, TEST_VALUE),
168 Maps.immutableEntry("foo", 1),
169 Maps.immutableEntry("bar", 2),
170 Maps.immutableEntry("baz", 3)).inOrder();
244 Maps.immutableEntry(TEST_KEY, TEST_VALUE),
245 Maps.immutableEntry("foo", 1)
    [all...]
LinkedHashMultimapTest.java 172 assertEquals(Maps.immutableEntry("foo", 5), entryIterator.next());
173 assertEquals(Maps.immutableEntry("bar", 4), entryIterator.next());
174 assertEquals(Maps.immutableEntry("foo", 3), entryIterator.next());
175 assertEquals(Maps.immutableEntry("cow", 2), entryIterator.next());
176 assertEquals(Maps.immutableEntry("bar", 1), entryIterator.next());
307 Maps.immutableEntry("foo", 2),
308 Maps.immutableEntry("foo", 3),
309 Maps.immutableEntry("bar", 4),
310 Maps.immutableEntry("bar", 5),
311 Maps.immutableEntry("foo", 6)))
    [all...]
MultimapsTest.java 20 import static com.google.common.collect.Maps.immutableEntry;
460 Maps.immutableEntry("foo", 1));
462 Maps.immutableEntry(
513 assertFalse(entries.contains(Maps.immutableEntry("foo",
515 assertFalse(entries.remove(Maps.immutableEntry("foo",
517 assertFalse(entries.contains(Maps.immutableEntry("foo",
519 assertFalse(entries.remove(Maps.immutableEntry("foo",
521 assertFalse(entries.contains(Maps.immutableEntry("foo",
523 assertFalse(entries.remove(Maps.immutableEntry("foo",
526 assertTrue(entries.contains(Maps.immutableEntry("foo"
    [all...]
LinkedListMultimapTest.java 347 Maps.immutableEntry("foo", 99),
348 Maps.immutableEntry("foo", 88),
349 Maps.immutableEntry("bar", 77));
353 Maps.immutableEntry("foo", 2),
354 Maps.immutableEntry("foo", 3),
355 Maps.immutableEntry("bar", 4),
356 Maps.immutableEntry("bar", 5),
357 Maps.immutableEntry("foo", 6));
452 Maps.immutableEntry("foo",
454 Maps.immutableEntry("bar"
    [all...]
ImmutableClassToInstanceMapTest.java 163 Maps.immutableEntry((Class) Integer.class, (Number) 0);
165 Maps.immutableEntry((Class) Number.class, (Number) 1);
167 Maps.immutableEntry((Class) Double.class, (Number) 2.0);
169 Maps.immutableEntry((Class) Byte.class, (Number) (byte) 0x03);
171 Maps.immutableEntry((Class) Long.class, (Number) 0x0FF1C1AL);
ImmutableMultimapTest.java 41 .put(Maps.immutableEntry("one", 1))
49 builder.put(Maps.immutableEntry("one", (Integer) null));
54 builder.put(Maps.immutableEntry((String) null, 1));
TreeBasedTableTest.java 393 assertTrue(entrySet.contains(Maps.immutableEntry(10, 'X')));
394 assertTrue(entrySet.contains(Maps.immutableEntry(20, 'X')));
395 assertFalse(entrySet.contains(Maps.immutableEntry(15, 'X')));
397 assertFalse(entrySet.contains(Maps.immutableEntry(10, 'X')));
398 assertTrue(entrySet.contains(Maps.immutableEntry(20, 'X')));
399 assertFalse(entrySet.contains(Maps.immutableEntry(15, 'X')));
410 assertFalse(entrySet.remove(Maps.immutableEntry(10, 'X')));
411 assertTrue(entrySet.remove(Maps.immutableEntry(20, 'X')));
412 assertFalse(entrySet.remove(Maps.immutableEntry(15, 'X')));
414 assertTrue(entrySet.remove(Maps.immutableEntry(10, 'X')))
    [all...]
ImmutableSortedMapTest.java 296 .put(Maps.immutableEntry("one", 1))
305 builder.put(Maps.immutableEntry("one", (Integer) null));
310 builder.put(Maps.immutableEntry((String) null, 1));
692 assertTrue(map.entrySet().contains(Maps.immutableEntry("a", new IntHolder(3))));
714 Maps.immutableEntry("one", 1),
715 Maps.immutableEntry("three", 3)).inOrder();
722 assertThat(map.entrySet()).has().exactly(Maps.immutableEntry("one", 1)).inOrder();
729 assertThat(map.entrySet()).has().exactly(Maps.immutableEntry("three", 3),
730 Maps.immutableEntry("two", 2)).inOrder();
737 assertThat(map.entrySet()).has().exactly(Maps.immutableEntry("two", 2)).inOrder()
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
ImmutableSortedMapTest.java 219 .put(Maps.immutableEntry("one", 1))
228 builder.put(Maps.immutableEntry("one", (Integer) null));
233 builder.put(Maps.immutableEntry((String) null, 1));
603 assertTrue(map.entrySet().contains(Maps.immutableEntry("a", new IntHolder(3))));
615 Maps.immutableEntry("one", 1),
616 Maps.immutableEntry("three", 3)).inOrder();
623 assertThat(map.entrySet()).has().exactly(Maps.immutableEntry("one", 1)).inOrder();
630 assertThat(map.entrySet()).has().exactly(Maps.immutableEntry("three", 3),
631 Maps.immutableEntry("two", 2)).inOrder();
638 assertThat(map.entrySet()).has().exactly(Maps.immutableEntry("two", 2)).inOrder()
    [all...]
TreeMultimapExplicitTest.java 159 Maps.immutableEntry((String) null, 7),
160 Maps.immutableEntry((String) null, 3),
161 Maps.immutableEntry((String) null, 1),
162 Maps.immutableEntry("tree", (Integer) null),
163 Maps.immutableEntry("tree", 0),
164 Maps.immutableEntry("google", 6),
165 Maps.immutableEntry("google", 2)).inOrder();
TreeMultimapNaturalTest.java 99 Maps.immutableEntry("foo", 1),
100 Maps.immutableEntry("foo", 3),
101 Maps.immutableEntry("foo", 7),
102 Maps.immutableEntry("google", 2),
103 Maps.immutableEntry("google", 6),
104 Maps.immutableEntry("tree", 0),
105 Maps.immutableEntry("tree", 4)).inOrder();
TreeBasedTableTest.java 350 assertTrue(entrySet.contains(Maps.immutableEntry(10, 'X')));
351 assertTrue(entrySet.contains(Maps.immutableEntry(20, 'X')));
352 assertFalse(entrySet.contains(Maps.immutableEntry(15, 'X')));
354 assertFalse(entrySet.contains(Maps.immutableEntry(10, 'X')));
355 assertTrue(entrySet.contains(Maps.immutableEntry(20, 'X')));
356 assertFalse(entrySet.contains(Maps.immutableEntry(15, 'X')));
367 assertFalse(entrySet.remove(Maps.immutableEntry(10, 'X')));
368 assertTrue(entrySet.remove(Maps.immutableEntry(20, 'X')));
369 assertFalse(entrySet.remove(Maps.immutableEntry(15, 'X')));
371 assertTrue(entrySet.remove(Maps.immutableEntry(10, 'X')))
    [all...]
MapConstraintsTest.java 117 Maps.immutableEntry(TEST_KEY, TEST_VALUE),
118 Maps.immutableEntry("foo", 1),
119 Maps.immutableEntry("bar", 2),
120 Maps.immutableEntry("baz", 3)).inOrder();
165 Maps.immutableEntry(TEST_KEY, TEST_VALUE),
166 Maps.immutableEntry("foo", 1),
167 Maps.immutableEntry("bar", 2),
168 Maps.immutableEntry("baz", 3)).inOrder();
242 Maps.immutableEntry(TEST_KEY, TEST_VALUE),
243 Maps.immutableEntry("foo", 1)
    [all...]
EnumHashBiMapTest.java 56 Maps.immutableEntry(Country.CANADA, "DOLLAR"),
57 Maps.immutableEntry(Country.CHILE, "PESO"),
58 Maps.immutableEntry(Country.UK, "POUND"),
59 Maps.immutableEntry(Country.JAPAN, "YEN"),
60 Maps.immutableEntry(Country.SWITZERLAND, "FRANC"));
LinkedHashMultimapTest.java 100 assertEquals(Maps.immutableEntry("foo", 5), entryIterator.next());
101 assertEquals(Maps.immutableEntry("bar", 4), entryIterator.next());
102 assertEquals(Maps.immutableEntry("foo", 3), entryIterator.next());
103 assertEquals(Maps.immutableEntry("cow", 2), entryIterator.next());
104 assertEquals(Maps.immutableEntry("bar", 1), entryIterator.next());
ImmutableMultimapTest.java 41 .put(Maps.immutableEntry("one", 1))
49 builder.put(Maps.immutableEntry("one", (Integer) null));
54 builder.put(Maps.immutableEntry((String) null, 1));
  /external/guava/guava/src/com/google/common/collect/
ForwardingSortedMultiset.java 123 return Multisets.immutableEntry(entry.getElement(), entry.getCount());
146 return Multisets.immutableEntry(entry.getElement(), entry.getCount());
166 entry = Multisets.immutableEntry(entry.getElement(), entry.getCount());
191 entry = Multisets.immutableEntry(entry.getElement(), entry.getCount());
AbstractSortedMultiset.java 82 result = Multisets.immutableEntry(result.getElement(), result.getCount());
94 result = Multisets.immutableEntry(result.getElement(), result.getCount());
  /external/guava/guava-testlib/src/com/google/common/collect/testing/google/
MultimapKeysTester.java 55 Multisets.immutableEntry(sampleKeys().e0, 2),
56 Multisets.immutableEntry(sampleKeys().e1, 1));
77 Multisets.immutableEntry((K) null, 2),
78 Multisets.immutableEntry(sampleKeys().e1, 1));
96 assertEquals(Multisets.immutableEntry(sampleKeys().e0, 1),
110 Multisets.immutableEntry(sampleKeys().e0, 2)));
MultisetEntrySetTester.java 60 Multisets.immutableEntry(samples.e0, 1), iterator.next());
77 Multisets.immutableEntry(samples.e0, 1)));
89 Multisets.immutableEntry(samples.e0, 2)));
101 Collections.singleton(Multisets.immutableEntry(samples.e0, 1))));
113 Collections.singleton(Multisets.immutableEntry(samples.e0, 2))));
125 Collections.singleton(Multisets.immutableEntry(samples.e0, 1))));
137 Collections.singleton(Multisets.immutableEntry(samples.e0, 2))));
MultisetReadsTester.java 48 Multisets.immutableEntry(samples.e0, 1)));
54 Multisets.immutableEntry(samples.e3, 0)));
  /external/guava/guava-tests/test/com/google/common/reflect/
ImmutableTypeToInstanceMapTest.java 159 Maps.immutableEntry((TypeToken) TypeToken.of(Integer.class), (Object) 0);
161 Maps.immutableEntry((TypeToken) TypeToken.of(Number.class), (Object) 1);
163 Maps.immutableEntry((TypeToken) new TypeToken<ImmutableList<Integer>>() {},
166 Maps.immutableEntry((TypeToken) new TypeToken<int[]>() {}, (Object) new int[] {3});
168 Maps.immutableEntry((TypeToken) new TypeToken<Iterable<?>>() {},
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
AbstractSortedMultiset.java 82 result = Multisets.immutableEntry(result.getElement(), result.getCount());
94 result = Multisets.immutableEntry(result.getElement(), result.getCount());

Completed in 1513 milliseconds

1 2 3 4