Package io.ably.lib.util
Class InternalMap<K,V>
- java.lang.Object
-
- io.ably.lib.util.InternalMap<K,V>
-
- Type Parameters:
K- Key type.V- Value type.
- All Implemented Interfaces:
ReadOnlyMap<K,V>
public abstract class InternalMap<K,V> extends java.lang.Object implements ReadOnlyMap<K,V>
A map implemented using aConcurrentHashMap. This class is a base class for other classes which are designed to be internal to the library, specifically as regards access to the map field. This class exposes aReadOnlyMapwhich is safe to be exposed in our public API.
-
-
Constructor Summary
Constructors Constructor Description InternalMap()
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
containsKey
public final boolean containsKey(java.lang.Object key)
- Specified by:
containsKeyin interfaceReadOnlyMap<K,V>
-
containsValue
public final boolean containsValue(java.lang.Object value)
- Specified by:
containsValuein interfaceReadOnlyMap<K,V>
-
entrySet
public final java.lang.Iterable<java.util.Map.Entry<K,V>> entrySet()
- Specified by:
entrySetin interfaceReadOnlyMap<K,V>
-
get
public final V get(java.lang.Object key)
- Specified by:
getin interfaceReadOnlyMap<K,V>
-
isEmpty
public final boolean isEmpty()
- Specified by:
isEmptyin interfaceReadOnlyMap<K,V>
-
keySet
public final java.lang.Iterable<K> keySet()
- Specified by:
keySetin interfaceReadOnlyMap<K,V>
-
size
public final int size()
- Specified by:
sizein interfaceReadOnlyMap<K,V>
-
values
public final java.lang.Iterable<V> values()
- Specified by:
valuesin interfaceReadOnlyMap<K,V>
-
-