Skip to content

Commit

Permalink
Make Maps.toImmutableEnumMap use j.u.f.Function.
Browse files Browse the repository at this point in the history
Fixes #2694

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=143120572
  • Loading branch information
lowasser authored and cgdecker committed Jan 3, 2017
1 parent c4f1700 commit 9c544ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions guava/src/com/google/common/collect/Maps.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ ImmutableMap<K, V> toImmutableMap() {
*/
@Beta
public static <T, K extends Enum<K>, V> Collector<T, ?, ImmutableMap<K, V>> toImmutableEnumMap(
Function<? super T, ? extends K> keyFunction,
Function<? super T, ? extends V> valueFunction) {
java.util.function.Function<? super T, ? extends K> keyFunction,
java.util.function.Function<? super T, ? extends V> valueFunction) {
checkNotNull(keyFunction);
checkNotNull(valueFunction);
return Collector.of(
Expand Down Expand Up @@ -237,8 +237,8 @@ ImmutableMap<K, V> toImmutableMap() {
*/
@Beta
public static <T, K extends Enum<K>, V> Collector<T, ?, ImmutableMap<K, V>> toImmutableEnumMap(
Function<? super T, ? extends K> keyFunction,
Function<? super T, ? extends V> valueFunction,
java.util.function.Function<? super T, ? extends K> keyFunction,
java.util.function.Function<? super T, ? extends V> valueFunction,
BinaryOperator<V> mergeFunction) {
checkNotNull(keyFunction);
checkNotNull(valueFunction);
Expand Down

0 comments on commit 9c544ea

Please sign in to comment.