Map::equal Method [AX 2012]

Determines whether two maps are equal.

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.

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.

Reference

Show: