Package io.ably.lib.types
Interface ReadOnlyMap<K,V>
- All Known Subinterfaces:
AblyBase.Channels,AblyRealtime.Channels
- All Known Implementing Classes:
InternalMap
public interface ReadOnlyMap<K,V>
Exposes a subset of the Map interface, providing read only access only, removing mutating interfaces.
Used in the Ably API where we have previously overexposed the full Map interface, providing a
level of acceptable support for users who had relied upon this overexposure for valid reasons
including testing and runtime inspection (e.g. iterating channels, counting channels, etc..).
Developers should not rely upon any methods in this interface as they will eventually
be remove from the Ably API, after a period of deprecation.
-
Method Summary
Modifier and Type Method Description booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.lang.Iterable<java.util.Map.Entry<K,V>>entrySet()Vget(java.lang.Object key)booleanisEmpty()java.lang.Iterable<K>keySet()intsize()java.lang.Iterable<V>values()
-
Method Details
-
containsKey
boolean containsKey(java.lang.Object key) -
containsValue
boolean containsValue(java.lang.Object value) -
entrySet
-
get
-
isEmpty
boolean isEmpty() -
keySet
java.lang.Iterable<K> keySet() -
size
int size() -
values
java.lang.Iterable<V> values()
-