List::equal Method

Determines whether two lists are identical.

Syntax

client server public static boolean equal(List list1, List list2)

Run On

Called

Parameters

  • list1
    Type: List Class
    The first list to be compared.
  • list2
    Type: List Class
    The second list to be compared.

Return Value

Type: boolean
true if the two lists are identical; otherwise, false.

Remarks

A list is equal to another list if the two lists are the same type, contain the same number of elements, and the elements occur in the same order.

See Also

List Class

List.equalTo Method