pdk.util.Map
functions to operate with maps
Functions
size
Returns the number of key-value mappings in the map.
Arguments:
map :: pdk.core.Map<V>
Result:
output :: pdk.core.Integer - the number of key-value mappings in the map.
Possible exceptions
NullPointerException - throws if the map argument is
NULL
containsKey
Returns true if the map contains a mapping for the specified key. More formally, returns true if and only if this map contains a mapping for a key k such that (key==null ? k==null : key = k). (There can be at most one such mapping.).
Arguments:
map :: pdk.core.Map<V>
key :: pdk.core.String
Result:
output :: pdk.core.Boolean
Possible exceptions
NullPointerException - throws if the map or key argument is
NULL
get
Returns the value to which the specified key is mapped, or null if the map contains no mapping for the key.
Arguments:
map :: pdk.core.Map<V>
key :: pdk.core.String
Result:
output :: V
Possible exceptions
NullPointerException - throws if the map or key argument is
NULL
keys
Returns a Array view of the keys contained in the map.
Arguments:
map :: pdk.core.Map<V>
Result:
output :: pdk.core.Array<pdk.core.String>
Possible exceptions
NullPointerException - throws if the map argument is
NULL
values
Returns an array view of the values contained in the map.
Returns a Array view of the keys contained in the map.
Arguments:
map :: pdk.core.Map<V>
Result:
output :: pdk.core.Array<V>
Possible exceptions
NullPointerException - throws if the map argument is
NULL
entryArray
Returns an Array view of the mappings contained in the map.
Arguments:
map :: pdk.core.Map<V>
Result:
output :: pdk.core.Array<pdk.core.MapEntry<V>>
Possible exceptions
NullPointerException - throws if the map argument is
NULL
isEmpty
Returns true if this map contains no key-value mappings.
Arguments:
map :: pdk.core.Map<V>
Result:
output :: pdk.core.Boolean
Possible exceptions
NullPointerException - throws if the map argument is
NULL
Last updated