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

Method asEntryTransformer

output/java_guava/1.4.18/Maps.java:1942–1950  ·  view source on GitHub ↗

Views a function as an entry transformer that ignores the entry key.

(final Function<? super V1, V2> function)

Source from the content-addressed store, hash-verified

1940
1941
1942 static <K, V1, V2> EntryTransformer<K, V1, V2> asEntryTransformer(final Function<? super V1, V2> function) {
1943 checkNotNull(function);
1944 return new EntryTransformer<K, V1, V2>() {
1945 @Override
1946 public V2 transformEntry(K key, V1 value) {
1947 return function.apply(value);
1948 }
1949 };
1950 }
1951
1952
1953 static <K, V1, V2> Function<V1, V2> asValueToValueFunction(

Callers 2

transformValuesMethod · 0.95
transformValuesMethod · 0.95

Calls 1

checkNotNullMethod · 0.45

Tested by

no test coverage detected