Views a function as an entry transformer that ignores the entry key.
(final Function<? super V1, V2> function)
| 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( |
no test coverage detected