Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 20 for MapEntry (0.09 seconds)

  1. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertThat(map.entrySet())
            .containsExactly(mapEntry("one", 3), mapEntry("three", 5), mapEntry("two", 3))
            .inOrder();
        assertThat(map.tailMap("onea").entrySet())
            .containsExactly(mapEntry("three", 5), mapEntry("two", 3))
            .inOrder();
        assertThat(map.subMap("one", "two").entrySet())
            .containsExactly(mapEntry("one", 3), mapEntry("three", 5))
            .inOrder();
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 62.7K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

                        return new SampleElements<>(
                            mapEntry(Range.singleton(0), "banana"),
                            mapEntry(Range.closedOpen(3, 5), "frisbee"),
                            mapEntry(Range.atMost(-1), "fruitcake"),
                            mapEntry(Range.open(10, 15), "elephant"),
                            mapEntry(Range.closed(20, 22), "umbrella"));
                      }
    
                      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 30.1K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

          return new SampleElements<>(
              mapEntry(sampleKeys.e0(), createCollection(sampleValues.e0())),
              mapEntry(sampleKeys.e1(), createCollection(sampleValues.e1())),
              mapEntry(sampleKeys.e2(), createCollection(sampleValues.e2())),
              mapEntry(sampleKeys.e3(), createCollection(sampleValues.e3())),
              mapEntry(sampleKeys.e4(), createCollection(sampleValues.e4())));
        }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

        assertFalse(entries.contains(mapEntry(k3(), v3())));
        multimap().put(k3(), v3());
        assertContains(entries, mapEntry(k3(), v3()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutPresentKeyPropagatesToEntries() {
        Collection<Entry<K, V>> entries = multimap().entries();
        assertFalse(entries.contains(mapEntry(k0(), v3())));
        multimap().put(k0(), v3());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

        }
    
        @Override
        public SampleElements<Entry<String, String>> samples() {
          return new SampleElements<>(
              mapEntry("one", "january"),
              mapEntry("two", "february"),
              mapEntry("three", "march"),
              mapEntry("four", "april"),
              mapEntry("five", "may"));
        }
    
        @Override
        public M create(Object... elements) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Sep 24 22:52:18 GMT 2025
    - 28.6K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

        try {
          assertFalse(getMap().entrySet().contains(mapEntry(IncomparableType.INSTANCE, v0())));
        } catch (ClassCastException acceptable) {
          // allowed by the spec
        }
      }
    
      public void testContainsEntryWithIncomparableValue() {
        try {
          assertFalse(getMap().entrySet().contains(mapEntry(k0(), IncomparableType.INSTANCE)));
        } catch (ClassCastException acceptable) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 16 03:23:31 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

        try {
          assertFalse(getMap().entrySet().contains(mapEntry(IncomparableType.INSTANCE, v0())));
        } catch (ClassCastException acceptable) {
          // allowed by the spec
        }
      }
    
      public void testContainsEntryWithIncomparableValue() {
        try {
          assertFalse(getMap().entrySet().contains(mapEntry(k0(), IncomparableType.INSTANCE)));
        } catch (ClassCastException acceptable) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 16 03:23:31 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

        }
    
        @Override
        public SampleElements<Entry<String, String>> samples() {
          return new SampleElements<>(
              mapEntry("one", "january"),
              mapEntry("two", "february"),
              mapEntry("three", "march"),
              mapEntry("four", "april"),
              mapEntry("five", "may"));
        }
    
        @Override
        public M create(Object... elements) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Sep 24 22:52:18 GMT 2025
    - 28.4K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/MapsTest.java

        assertThat(map.entrySet())
            .containsExactly(mapEntry("one", 3), mapEntry("three", 5), mapEntry("two", 3))
            .inOrder();
        assertThat(map.tailMap("onea").entrySet())
            .containsExactly(mapEntry("three", 5), mapEntry("two", 3))
            .inOrder();
        assertThat(map.subMap("one", "two").entrySet())
            .containsExactly(mapEntry("one", 3), mapEntry("three", 5))
            .inOrder();
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 65K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        @Override
        public SampleElements<Entry<Country, Currency>> samples() {
          return new SampleElements<>(
              mapEntry(Country.CANADA, Currency.DOLLAR),
              mapEntry(Country.CHILE, Currency.PESO),
              mapEntry(Country.UK, Currency.POUND),
              mapEntry(Country.JAPAN, Currency.YEN),
              mapEntry(Country.SWITZERLAND, Currency.FRANC));
        }
    
        @SuppressWarnings("unchecked")
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 11.9K bytes
    - Click Count (0)
Back to Top