public final class JRCloneUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends JRCloneable> |
cloneArray(T[] items)
Clones a list of objects.
|
static <T extends JRCloneable> |
cloneList(List<T> items)
Clones a list of objects.
|
static <T extends JRCloneable> |
nullSafeClone(T original)
Clones an object after checking whether the argument is null.
|
public static <T extends JRCloneable> T nullSafeClone(T original)
original
- the object to be clonednull
if the argument was
null
public static <T extends JRCloneable> List<T> cloneList(List<T> items)
JRCloneable
.items
- the list to clonepublic static <T extends JRCloneable> T[] cloneArray(T[] items)
JRCloneable
.items
- the list to cloneCopyright © 2023 Cloud Software Group, Inc.. All rights reserved.