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>
A map implemented using a
ConcurrentHashMap
. 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 a ReadOnlyMap
which is safe to be exposed in our public API.-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
map
-
-
Constructor Details
-
InternalMap
public InternalMap()
-
-
Method Details
-
containsKey
- Specified by:
-
containsKey
in interfaceReadOnlyMap<K,
V>
-
containsValue
- Specified by:
-
containsValue
in interfaceReadOnlyMap<K,
V>
-
entrySet
- Specified by:
-
entrySet
in interfaceReadOnlyMap<K,
V>
-
get
- Specified by:
-
get
in interfaceReadOnlyMap<K,
V>
-
isEmpty
public final boolean isEmpty()- Specified by:
-
isEmpty
in interfaceReadOnlyMap<K,
V>
-
keySet
- Specified by:
-
keySet
in interfaceReadOnlyMap<K,
V>
-
size
public final int size()- Specified by:
-
size
in interfaceReadOnlyMap<K,
V>
-
values
- Specified by:
-
values
in interfaceReadOnlyMap<K,
V>
-