Package io.ably.lib.util

Class CollectionUtils

java.lang.Object
io.ably.lib.util.CollectionUtils

public final class CollectionUtils extends Object
  • Method Details

    • copy

      public static <K, V> Map<K,V> copy(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.