Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testTransformValues (0.05 sec)

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

        assertEquals(ImmutableSet.of(1, 2, 3), sync.inverse().keySet());
      }
    
      private static final Function<Integer, Double> SQRT_FUNCTION = in -> Math.sqrt(in);
    
      public void testTransformValues() {
        Map<String, Integer> map = ImmutableMap.of("a", 4, "b", 9);
        Map<String, Double> transformed = transformValues(map, SQRT_FUNCTION);
    
        assertEquals(ImmutableMap.of("a", 2.0, "b", 3.0), transformed);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertThrows(
            NullPointerException.class, () -> Multimaps.index(values, Functions.constant(null)));
      }
    
      @GwtIncompatible(value = "untested")
      public void testTransformValues() {
        SetMultimap<String, Integer> multimap =
            ImmutableSetMultimap.of("a", 2, "b", -3, "b", 3, "a", 4, "c", 6);
        Function<Integer, Integer> square =
            new Function<Integer, Integer>() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(ImmutableSet.of(1, 2, 3), sync.inverse().keySet());
      }
    
      private static final Function<Integer, Double> SQRT_FUNCTION = in -> Math.sqrt(in);
    
      public void testTransformValues() {
        Map<String, Integer> map = ImmutableMap.of("a", 4, "b", 9);
        Map<String, Double> transformed = transformValues(map, SQRT_FUNCTION);
    
        assertEquals(ImmutableMap.of("a", 2.0, "b", 3.0), transformed);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 65K bytes
    - Viewed (0)
Back to top