Returns a view of a map where each value is transformed by a function. All other properties of the map, such as iteration order, are left intact. For example, the code: {@code Map map = ImmutableMap.of("a", 4, "b", 9); Function sqrt = new Function
(Map<K, V1> fromMap, Function<? super V1, V2> function)
| 1631 | |
| 1632 | |
| 1633 | public static <K, V1, V2> Map<K, V2> transformValues(Map<K, V1> fromMap, Function<? super V1, V2> function) { |
| 1634 | return transformEntries(fromMap, asEntryTransformer(function)); |
| 1635 | } |
| 1636 | |
| 1637 | /** |
| 1638 | * Returns a view of a sorted map where each value is transformed by a |