public final class JRCloneUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T extends JRCloneable> |
cloneArray(T[] items)
Clones a list of objects.
|
static <T extends JRCloneable> |
cloneList(java.util.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> java.util.List<T> cloneList(java.util.List<T> items)
JRCloneable
.items
- the list to clonepublic static <T extends JRCloneable> T[] cloneArray(T[] items)
JRCloneable
.items
- the list to clone© 2001-2010 Jaspersoft Corporation www.jaspersoft.com