Util.HashMap.size()

Signature

String size (String mapID)

Domain

action, condition

Description

Returns the number of mappings in the map specified by mapID. If the map does not exist, returns -1.

Parameters

NameTypeDescription
mapIDStringThe String ID of the map.

Returns

TypeDescription
intthe size of the map.

Example

int s = HashMap.size ("MyMap");
Result is:
s contains: 10.