List.equalTo Method
Determines whether a list is the same as the current list.
Syntax
public boolean equalTo(List l)
Run On
Called
Parameters
- l
Type: List Class
The list to be compared with the current list.
Return Value
Type: boolean
true if the specified list is identical to the list on which the method is called; 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.
The equalTo method is a shortcut for using the List.equal method: equal(this, l).