ee.List.equals
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trả về true nếu danh sách chứa các phần tử giống như danh sách khác, theo cùng một thứ tự.
Cách sử dụng | Giá trị trả về |
---|
List.equals(other) | Boolean |
Đối số | Loại | Thông tin chi tiết |
---|
this: list | Danh sách | |
other | Danh sách | |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-29 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-29 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 | |"]]