java.lang.Object
io.getlime.security.powerauth.lib.cmd.util.MapUtil

public class MapUtil
extends java.lang.Object
Map utilities.
Author:
Roman Strobl, roman.strobl@wultra.com
  • Constructor Summary

    Constructors
    Constructor Description
    MapUtil()  
  • Method Summary

    Modifier and Type Method Description
    static <K,​ V> org.springframework.util.MultiValueMap<K,​V> toMultiValueMap​(java.util.Map<K,​V> map)
    Maps a standard map data to a multi-value map where is a key mapped to a collection of values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MapUtil

      public MapUtil()
  • Method Details

    • toMultiValueMap

      public static <K,​ V> org.springframework.util.MultiValueMap<K,​V> toMultiValueMap​(java.util.Map<K,​V> map)
      Maps a standard map data to a multi-value map where is a key mapped to a collection of values.
      Type Parameters:
      K - Type of the map key
      V - Type of the map value
      Parameters:
      map - Map to be converted to a multi-value map
      Returns:
      Multi-value map created from a standard map data