get

Returns the value to which the specified key is mapped, or ($D_CODE null) if this associative array contains no mapping for the key.

More formally, if the specified associative array contains a mapping from a key

k
to a value
v
such that
(key==null ? k==null :
key.equals(k))
, then this method returns
v
; otherwise it returns
null
. (There can be at most one such mapping.)

V
get
(
K
V
)
(
V[K] aa
,
K key
)

Parameters

aa V[K]

the associative array to get the value from

key K

the key whose associated value is to be returned

Return Value

Type: V

the value to which the specified key is mapped, or

null
if this map contains no mapping for the key

Throws

AssertException if any paramter is invalid NoSuchElementException if the given key could not be found

Meta