Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.List.containsAll
Stay organized with collections
Save and categorize content based on your preferences.
Returns true if list contains all of the elements of other, regardless of order.
Usage | Returns | List.containsAll(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\u003eReturns \u003ccode\u003etrue\u003c/code\u003e only if the original list contains every single element in the \u003ccode\u003eother\u003c/code\u003e list, ignoring element ordering.\u003c/p\u003e\n"],["\u003cp\u003eThis method compares two lists and provides a boolean indicating whether one completely encompasses the other.\u003c/p\u003e\n"],["\u003cp\u003eAccepts two arguments: the original list (\u003ccode\u003ethis: list\u003c/code\u003e) and the comparison list (\u003ccode\u003eother\u003c/code\u003e).\u003c/p\u003e\n"]]],["The `List.containsAll(other)` function checks if a list (`list`) contains all elements present in another list (`other`), irrespective of their order. It takes another list (`other`) as an argument. The function then returns a boolean value, `true` if all elements from `other` are present in `list`, and `false` otherwise.\n"],null,["# ee.List.containsAll\n\nReturns true if list contains all of the elements of other, regardless of order.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------|---------|\n| List.containsAll`(other)` | Boolean |\n\n| Argument | Type | Details |\n|--------------|------|---------|\n| this: `list` | List | |\n| `other` | List | |"]]