Thread
:
How to Safely Swap All Data in 2 ArrayLists
View Single Post
sorallll
Senior Member
Join Date: Oct 2018
09-21-2022 , 14:34 Re: How to Safely Swap All Data in 2 ArrayLists
#
5
Quote:
Originally Posted by
Dragokas
The question is not clear.
if "a" and "b" are global variables, used everywhere in code without caching them (like in some statics), you don't need to swap Data, the method in sorallll post is completely safe to exchange the links only.
If links are additionally pre-cached somewhere, the Clone method is your case.
global variables
sorallll
View Public Profile
Send a private message to sorallll
Find More Posts by sorallll