ee.List.contains
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפונקציה מחזירה את הערך True אם הרשימה מכילה את הרכיב.
שימוש | החזרות |
---|
List.contains(element) | בוליאני |
ארגומנט | סוג | פרטים |
---|
זה: list | רשימה | |
element | אובייקט | |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eThis method checks if a given element is present within a list.\u003c/p\u003e\n"],["\u003cp\u003eIt returns true if the element is found in the list, otherwise it returns false.\u003c/p\u003e\n"],["\u003cp\u003eThe method takes the list and the element to search for as arguments.\u003c/p\u003e\n"]]],["The core function, `List.contains(element)`, checks for the presence of a specified element within a list. It accepts two arguments: the `list` itself (of type List) and the `element` (of type Object) to search for. The function returns a Boolean value, specifically `true` if the `element` exists in the `list`, and presumably `false` otherwise.\n"],null,["# ee.List.contains\n\nReturns true if list contains element.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------|---------|\n| List.contains`(element)` | Boolean |\n\n| Argument | Type | Details |\n|--------------|--------|---------|\n| this: `list` | List | |\n| `element` | Object | |"]]