ui.Map.Linker.reset
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
सूची में मौजूद सभी एलिमेंट को नई सूची से बदल देता है. अगर कोई सूची नहीं दी जाती है, तो सूची से सभी एलिमेंट हटा देता है.
रीसेट लागू होने के बाद, सूची में मौजूद एलिमेंट दिखाता है.
इस्तेमाल | रिटर्न |
---|
Linker.reset(list) | List<Object> |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.data.activelist | ui.data.ActiveList | ui.data.ActiveList इंस्टेंस. |
list | List<Object>, ज़रूरी नहीं | एलिमेंट की सूची. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe \u003ccode\u003ereset\u003c/code\u003e method replaces all elements in a \u003ccode\u003eui.data.ActiveList\u003c/code\u003e with a new list, or removes all elements if no new list is provided.\u003c/p\u003e\n"],["\u003cp\u003eIt returns the elements present in the list after the reset operation.\u003c/p\u003e\n"],["\u003cp\u003eThe method can be called on a \u003ccode\u003eui.data.ActiveList\u003c/code\u003e instance using \u003ccode\u003eLinker.reset(list)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAn optional 'list' argument of type List can be provided to specify the new elements.\u003c/p\u003e\n"]]],["The function `reset` replaces all elements within an `ActiveList` instance with a new list. If no new list is provided, it removes all existing elements. It operates on an `ActiveList` object and accepts an optional list of elements as its argument. The function returns the `ActiveList` containing the elements after the reset operation has been completed.\n"],null,["# ui.Map.Linker.reset\n\n\u003cbr /\u003e\n\nReplaces all elements in list with a new list or, if no list is provided, removes all elements from list.\n\n\u003cbr /\u003e\n\nReturns the elements in the list after the reset is applied.\n\n| Usage | Returns |\n|--------------------------|----------------|\n| Linker.reset`(`*list*`)` | List\\\u003cObject\\\u003e |\n\n| Argument | Type | Details |\n|----------------------------|--------------------------|----------------------------------|\n| this: `ui.data.activelist` | ui.data.ActiveList | The ui.data.ActiveList instance. |\n| `list` | List\\\u003cObject\\\u003e, optional | A list of elements. |"]]