Class MapUtils
- java.lang.Object
-
- org.teichert.databaseexplorer.utils.MapUtils
-
public final class MapUtils extends Object
Helper-class for using Maps.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K,V>
Map<V,K>getReversedMap(Map<K,V> inputMap)
Method to reverse the content of aMap
.
If there are duplications the last occurance will win.
(So be sure, there are no duplications, or do not use it if not wanted!)
-
-
-
Method Detail
-
getReversedMap
public static <K,V> Map<V,K> getReversedMap(Map<K,V> inputMap)
Method to reverse the content of aMap
.
If there are duplications the last occurance will win.
(So be sure, there are no duplications, or do not use it if not wanted!)- Type Parameters:
K
-V
-- Parameters:
inputMap
-- Returns:
-
-