Class MapUtils


  • public class MapUtils
    extends Object
    The type Map utils.
    • Method Detail

      • of

        public static <K,​V> Map<K,​V> of​(K k1,
                                                    V v1,
                                                    K k2,
                                                    V v2)
        Of map.
        Type Parameters:
        K - the type parameter
        V - the type parameter
        Parameters:
        k1 - the k 1
        v1 - the v 1
        k2 - the k 2
        v2 - the v 2
        Returns:
        map map
      • of

        public static <K,​V> Map<K,​V> of​(K k1,
                                                    V v1,
                                                    K k2,
                                                    V v2,
                                                    K k3,
                                                    V v3,
                                                    K k4,
                                                    V v4)
        Of map.
        Type Parameters:
        K - the type parameter
        V - the type parameter
        Parameters:
        k1 - the k 1
        v1 - the v 1
        k2 - the k 2
        v2 - the v 2
        k3 - the k 3
        v3 - the v 3
        k4 - the k 4
        v4 - the v 4
        Returns:
        map map