BBjspHashMap::containsKey

Description

In BBj 16.0 and higher, this method returns true if this map contains a mapping for the specified key.

Syntax

Return Value

Method

boolean

containsKey(Object key)

Parameters

None.

Return Value

Remarks

None.

Example

declare BBjspHashMap map!

map! = new BBjspHashMap()

while 1
  if map!.containsKey("F") then
    ? "F was found :" + str(map!.getLong("F"))
    break
  else
    ? "F was not found so adding it"
    map!.setLong("F",12.34)
  endif
wend

See Also

BBjspHashMap