Class CollectionUtils

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

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

    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 Details

    • 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.