Interface UnmodifiableEconomicMap<K,V>
- All Known Subinterfaces:
EconomicMap<K,V>
- All Known Implementing Classes:
EconomicMapWrap
public interface UnmodifiableEconomicMap<K,V>
Unmodifiable memory efficient map. See
EconomicMap for the underlying data structure and
its properties.- Since:
- 19.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(K key) Returnstrueif this map contains a mapping forkey.Returns the value to whichkeyis mapped, ornullif this map contains no mapping forkey.default VReturns the value to whichkeyis mapped, ordefaultValueif this map contains no mapping forkey.Returns aUnmodifiableMapCursorview of the mappings contained in this map.default EquivalenceReturns the strategy used to compare keys.getKeys()Returns aIterableview of the keys contained in this map.Returns aIterableview of the values contained in this map.booleanisEmpty()Returnstrueif this map contains no key-value mappings.intsize()Returns the number of key-value mappings in this map.
-
Method Details
-
get
-
get
-
containsKey
Returnstrueif this map contains a mapping forkey. Always returnsfalseif thekeyisnull.- Since:
- 19.0
-
size
int size()Returns the number of key-value mappings in this map.- Since:
- 19.0
-
isEmpty
boolean isEmpty()Returnstrueif this map contains no key-value mappings.- Since:
- 19.0
-
getValues
-
getKeys
-
getEntries
UnmodifiableMapCursor<K,V> getEntries()Returns aUnmodifiableMapCursorview of the mappings contained in this map.- Since:
- 19.0
-
getEquivalenceStrategy
-