Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 80 for MapEntry (0.08 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java

        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v2()));
        assertGet(k0(), v0(), v1(), v2());
      }
    
      public void testGetAbsentKey() {
        assertGet(k4());
      }
    
      @CollectionSize.Require(SEVERAL)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testPropagatesRemoveToMultimap() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v3()), mapEntry(k0(), v2()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java

        @Override
        public SampleElements<Entry<String, Integer>> samples() {
          return new SampleElements<>(
              mapEntry("foo", 5),
              mapEntry("bar", 3),
              mapEntry("baz", 17),
              mapEntry("quux", 1),
              mapEntry("toaster", -2));
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public Entry<String, Integer>[] createArray(int length) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/SampleElements.java

          SampleElements<Entry<K, V>> mapEntries(SampleElements<K> keys, SampleElements<V> values) {
        return new SampleElements<>(
            mapEntry(keys.e0(), values.e0()),
            mapEntry(keys.e1(), values.e1()),
            mapEntry(keys.e2(), values.e2()),
            mapEntry(keys.e3(), values.e3()),
            mapEntry(keys.e4(), values.e4()));
      }
    
      public E e0() {
        return e0;
      }
    
      public E e1() {
        return e1;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java

      @CollectionSize.Require(SEVERAL)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testPropagatesRemoveToMultimap() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v3()), mapEntry(k0(), v2()));
        Collection<V> result = multimap().asMap().get(k0());
        assertTrue(result.remove(v0()));
        assertFalse(multimap().containsEntry(k0(), v0()));
        assertEquals(2, multimap().size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableEnumMapTest.java

        ImmutableMap<AnEnum, String> map =
            Maps.immutableEnumMap(ImmutableMap.of(AnEnum.C, "c", AnEnum.A, "a", AnEnum.E, "e"));
    
        assertThat(map.entrySet())
            .containsExactly(mapEntry(AnEnum.A, "a"), mapEntry(AnEnum.C, "c"), mapEntry(AnEnum.E, "e"))
            .inOrder();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestEnumMapGenerator.java

      @Override
      public SampleElements<Entry<AnEnum, String>> samples() {
        return new SampleElements<>(
            mapEntry(AnEnum.A, "January"),
            mapEntry(AnEnum.B, "February"),
            mapEntry(AnEnum.C, "March"),
            mapEntry(AnEnum.D, "April"),
            mapEntry(AnEnum.E, "May"));
      }
    
      @Override
      public final Map<AnEnum, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

        assertEquals(getNumElements() - 1, multimap().size());
      }
    
      @CollectionSize.Require(SEVERAL)
      @MapFeature.Require(SUPPORTS_PUT)
      public void testAsMapEntrySetReflectsPutSameKey() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v3()));
    
        Set<Entry<K, Collection<V>>> asMapEntrySet = multimap().asMap().entrySet();
        Collection<V> valueCollection = getOnlyElement(asMapEntrySet).getValue();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java

        expectContents(mapEntry(k1(), v0()));
        assertEquals(k1(), getMap().inverse().get(v0()));
        assertEquals(1, getMap().size());
        assertFalse(getMap().containsKey(k0()));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(SEVERAL)
      public void testForcePutKeyAndValuePresent() {
        getMap().forcePut(k0(), v1());
        expectContents(mapEntry(k0(), v1()), mapEntry(k2(), v2()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/TestStringListMultimapGenerator.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 SampleElements<String> sampleKeys() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.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 SampleElements<String> sampleKeys() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top