ee.List.replaceAll
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zastępuje wszystkie wystąpienia wartości oldval na liście wartością newval.
Wykorzystanie | Zwroty |
---|
List.replaceAll(oldval, newval) | Lista |
Argument | Typ | Szczegóły |
---|
to: list | Lista | |
oldval | Obiekt | |
newval | Obiekt | |
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-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ereplaceAll\u003c/code\u003e method substitutes all instances of \u003ccode\u003eoldval\u003c/code\u003e within the list with \u003ccode\u003enewval\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt operates directly on the existing list and returns the modified list.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eoldval\u003c/code\u003e represents the value to be replaced and \u003ccode\u003enewval\u003c/code\u003e represents the replacement value.\u003c/p\u003e\n"]]],[],null,["# ee.List.replaceAll\n\nReplaces all occurrences of oldval in list with newval.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------|---------|\n| List.replaceAll`(oldval, newval)` | List |\n\n| Argument | Type | Details |\n|--------------|--------|---------|\n| this: `list` | List | |\n| `oldval` | Object | |\n| `newval` | Object | |"]]