How To Clone Java Collections with Streams
This How To features using streams in the Java programming language to make "safe" deep clones of collections of objects.The cloning (aka, copying) of objects in Java has been an arduous task since its inception. Partly due to the way the `Object#clone` method was designed then oddly paired with the `Cloneable` interface and also complicated by the way reference types, or objects, work in concert with collections in OOP based languages.
By Adam McQuistan
on 06/22/2019