公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.List.containsAll
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如果列表包含 other 的所有元素(无论顺序如何),则返回 true。
用法 | 返回 |
---|
List.containsAll(other) | 布尔值 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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 | |"]]