HashMapΒΆ

Class and companion object for an immutable map on the host CPU.


Infix methods

class HashMap[K, V]
def size: Int
Returns the number of key-value pairs stored in this HashMap.
def keys: Array[K]
Returns an Array of all keys stored in this HashMap.
def values: Array[V]
Returns an Array of all values stored in this HashMap.
def apply(key: K): V
Returns the value associated with the given key.
Throws an exception if the given key is not stored in this HashMap
def contains(key: K): Boolean
Returns the value associated with the given key.
Throws an exception if the given key is not stored in this HashMap