require

Returns the required value in the map with the specified key. If the value is not in the map an exception will be thrown.

Return

The value of the mapping with the specified key.

Parameters

key

the key.

Throws

if the value is not in the map.