Map::equal Method

Determines whether two maps are equal.

Syntax

client server public static boolean equal(Map map1, Map map2)

Run On

Called

Parameters

  • map1
    Type: Map Class
    The rirst map to compare.
  • map2
    Type: Map Class
    The second map to compare.

Return Value

Type: boolean
true if the two maps are equal; otherwise, false.

Remarks

Two maps are equal if they contain the same number of elements, their key sets are the same, and if each key in the key set maps to the same value in both maps.

See Also

Reference

Map Class