View Single Post
sorallll
Senior Member
Join Date: Oct 2018
Old 09-21-2022 , 14:34   Re: How to Safely Swap All Data in 2 ArrayLists
Reply With Quote #5

Quote:
Originally Posted by Dragokas View Post
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 is offline