Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.List.equals
Stay organized with collections
Save and categorize content based on your preferences.
Returns true if list contains the same elements as other, in the same order.
Usage | Returns | List.equals(other) | Boolean |
Argument | Type | Details | this: list | List | |
other | List | |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eVerifies if two lists share identical elements arranged in the same sequence.\u003c/p\u003e\n"],["\u003cp\u003eReturns \u003ccode\u003etrue\u003c/code\u003e if the elements and their order match in both lists, otherwise \u003ccode\u003efalse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis method is applicable to lists for element-by-element comparison.\u003c/p\u003e\n"],["\u003cp\u003eThe comparison considers the order of elements as a crucial factor for equality.\u003c/p\u003e\n"]]],["The `List.equals(other)` method checks if a list (`this`) is identical to another list (`other`). It returns a Boolean value, specifically `true`, if both lists contain the same elements in the same sequence. It will return `false` otherwise. The method takes one argument, `other`, which is the list being compared to. The list that the method is called on is `this` and of the type List.\n"],null,["# ee.List.equals\n\nReturns true if list contains the same elements as other, in the same order.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------|---------|\n| List.equals`(other)` | Boolean |\n\n| Argument | Type | Details |\n|--------------|------|---------|\n| this: `list` | List | |\n| `other` | List | |"]]