Class CollectionUtils


  • public final class CollectionUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <K,​V>
      java.util.Map<K,​V>
      copy​(java.util.Map<K,​V> map)
      Creates a shallow copy.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • copy

        public static <K,​V> java.util.Map<K,​V> copy​(java.util.Map<K,​V> map)
        Creates a shallow copy.
        Type Parameters:
        K - Key type.
        V - Value type.
        Parameters:
        map - The map to be copied.
        Returns:
        A new map.