Class MapUtils

java.lang.Object
net.paulem.arcana.utils.MapUtils

public class MapUtils extends Object
Utility methods for working with maps.
  • Constructor Details

    • MapUtils

      public MapUtils()
  • Method Details

    • copyOf

      public static <K, V> Map<K,V> copyOf(Map<K,V> map)
      Creates an unmodifiable shallow copy of the given map.
      Type Parameters:
      K - the type of the keys
      V - the type of the values
      Parameters:
      map - the map to copy
      Returns:
      an unmodifiable copy of map