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

Method asEntryTransformer

output/java_guava/1.4.19/Maps.java:1944–1952  ·  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

1942
1943
1944 static <K, V1, V2> EntryTransformer<K, V1, V2> asEntryTransformer(final Function<? super V1, V2> function) {
1945 checkNotNull(function);
1946 return new EntryTransformer<K, V1, V2>() {
1947 @Override
1948 public V2 transformEntry(K key, V1 value) {
1949 return function.apply(value);
1950 }
1951 };
1952 }
1953
1954
1955 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