public final class Maps
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <K,T> java.util.Map<K,T> |
index(java.lang.Iterable<T> elements,
java.util.function.Function<T,K> indexBy) |
static <K,V,U> java.util.Map<U,V> |
transformKeys(java.util.Map<K,V> map,
java.util.function.Function<K,U> fn) |
static <K,V,U> java.util.Map<K,U> |
transformValues(java.util.Map<K,V> map,
java.util.function.BiFunction<K,V,U> fn) |
static <K,V,U> java.util.Map<K,U> |
transformValues(java.util.Map<K,V> map,
java.util.function.Function<V,U> fn) |
public static <K,V,U> java.util.Map<K,U> transformValues(java.util.Map<K,V> map, java.util.function.Function<V,U> fn)
public static <K,V,U> java.util.Map<U,V> transformKeys(java.util.Map<K,V> map, java.util.function.Function<K,U> fn)
public static <K,V,U> java.util.Map<K,U> transformValues(java.util.Map<K,V> map, java.util.function.BiFunction<K,V,U> fn)
public static <K,T> java.util.Map<K,T> index(java.lang.Iterable<T> elements, java.util.function.Function<T,K> indexBy)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.