MCPcopy Create free account
hub / github.com/antlr/codebuff / transformValues

Method transformValues

output/java_guava/1.4.17/Maps.java:1633–1635  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 11

createAsMapMethod · 0.95
parametersAsMapMethod · 0.95
asMapMethod · 0.95
rowMethod · 0.95
columnMethod · 0.95
applyMethod · 0.95
rowMapMethod · 0.95
columnMapMethod · 0.95
columnMapMethod · 0.95
rowMapMethod · 0.95
rowMapMethod · 0.95

Calls 2

transformEntriesMethod · 0.95
asEntryTransformerMethod · 0.95

Tested by

no test coverage detected