Constructor and Description |
---|
Maps2() |
Modifier and Type | Method and Description |
---|---|
static <K1,K2,V> Map<K2,V> |
transformKeys(Map<K1,V> in,
com.google.common.base.Function<K1,K2> fn)
change the keys but keep the values in-tact.
|
public static <K1,K2,V> Map<K2,V> transformKeys(Map<K1,V> in, com.google.common.base.Function<K1,K2> fn)
K1
- input key typeK2
- output key typeV
- value typein
- input map to transformfn
- how to transform the valuesCopyright © 2009-2013 jclouds. All Rights Reserved.