ee.List.equals
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca wartość „prawda”, jeśli lista zawiera te same elementy co inna lista w tej samej kolejności.
Wykorzystanie | Zwroty |
---|
List.equals(other) | Wartość logiczna |
Argument | Typ | Szczegóły |
---|
to: list | Lista | |
other | Lista | |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-29 UTC.
[null,null,["Ostatnia aktualizacja: 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 | |"]]