Class MapUtils


  • public final class MapUtils
    extends Object
    Helper-class for using Maps.
    • Method Detail

      • getReversedMap

        public static <K,​V> Map<V,​K> getReversedMap​(Map<K,​V> inputMap)
        Method to reverse the content of a Map.
        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: