Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testReplaceAllPreservesOrder (0.1 sec)

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

        }
        expectContents(expectedEntries);
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testReplaceAllPreservesOrder() {
        getMap()
            .replaceAll(
                (K k, V v) -> {
                  int index = keys().asList().indexOf(k);
                  return values().asList().get(index + 1);
                });
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top