Closed md5sha256 closed 3 years ago
Should be fixed
Actually, are the generics on #deepCopy(Collection, Function, Collection)
necessary? Maybe I can just have them as Collection
instead. Same goes for #deepCopy(Map, Function, Map)
EDIT: Removed the unnecessary generics
Actually, are the generics on
#deepCopy(Collection, Function, Collection)
necessary? Maybe I can just have them asCollection
instead. Same goes for#deepCopy(Map, Function, Map)
EDIT: Removed the unnecessary generics
Yeah, that is much better. The base type is more than enough here
Adds a util class for deep copying
Collection
,Map
and arrays. I haven't tested the changes but this should be simple enough that a quick glance will spot errors. If that's insufficient I can write a simple unit test for this.