Top Description Methods
org.graalvm.collections

public Interface UnmodifiableEconomicMap<K, V>

Known Direct Subinterfaces
org.graalvm.collections.EconomicMap

Unmodifiable memory efficient map. See EconomicMap for the underlying data structure and its properties.
Since
19.0

Method Summary

Modifier and TypeMethod and Description
public boolean
containsKey(K key)

Returns true if this map contains a mapping for key.

public V
get(K key)

Returns the value to which key is mapped, or null if this map contains no mapping for key.

public default V
get(K key, V defaultValue)

Returns the value to which key is mapped, or defaultValue if this map contains no mapping for key.

public UnmodifiableMapCursor<K, V>
getEntries()

Returns a UnmodifiableMapCursor view of the mappings contained in this map.

public default Equivalence
getEquivalenceStrategy()

Returns the strategy used to compare keys.

public Iterable<K>
getKeys()

Returns a Iterable view of the keys contained in this map.

public Iterable<V>
getValues()

Returns a Iterable view of the values contained in this map.

public boolean
isEmpty()

Returns true if this map contains no key-value mappings.

public int
size()

Returns the number of key-value mappings in this map.

Method Detail

containsKeyback to summary
public boolean containsKey(K key)

Returns true if this map contains a mapping for key. Always returns false if the key is null.

Since
19.0
getback to summary
public V get(K key)

Returns the value to which key is mapped, or null if this map contains no mapping for key. The key must not be null.

Since
19.0
getback to summary
public default V get(K key, V defaultValue)

Returns the value to which key is mapped, or defaultValue if this map contains no mapping for key. The key must not be null.

Since
19.0
getEntriesback to summary
public UnmodifiableMapCursor<K, V> getEntries()

Returns a UnmodifiableMapCursor view of the mappings contained in this map.

Since
19.0
getEquivalenceStrategyback to summary
public default Equivalence getEquivalenceStrategy()

Returns the strategy used to compare keys.

Since
23.0
getKeysback to summary
public Iterable<K> getKeys()

Returns a Iterable view of the keys contained in this map.

Since
19.0
getValuesback to summary
public Iterable<V> getValues()

Returns a Iterable view of the values contained in this map.

Since
19.0
isEmptyback to summary
public boolean isEmpty()

Returns true if this map contains no key-value mappings.

Since
19.0
sizeback to summary
public int size()

Returns the number of key-value mappings in this map.

Since
19.0