Package io.ably.lib.util
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.
-
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.
-