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

Method transformEntries

output/java_guava/1.4.17/Maps.java:1782–1784  ·  view source on GitHub ↗

Returns a view of a map whose values are derived from the original map's entries. In contrast to #transformValues, this method's entry-transformation logic may depend on the key as well as the value. All other properties of the transformed map, such as iteration order, are left intact. F

(Map<K, V1> fromMap, EntryTransformer<? super K, ? super V1, V2> transformer)

Source from the content-addressed store, hash-verified

1780
1781
1782 public static <K, V1, V2> Map<K, V2> transformEntries(Map<K, V1> fromMap, EntryTransformer<? super K, ? super V1, V2> transformer) {
1783 return new TransformedEntriesMap<K, V1, V2>(fromMap, transformer);
1784 }
1785
1786 /**
1787 * Returns a view of a sorted map whose values are derived from the original

Callers 9

transformValuesMethod · 0.95
createAsMapMethod · 0.95
headMapMethod · 0.45
subMapMethod · 0.45
tailMapMethod · 0.45
descendingMapMethod · 0.45
headMapMethod · 0.45
subMapMethod · 0.45
tailMapMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected