|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.util.JRCloneUtils
public final class JRCloneUtils
Cloning related utility methods.
Method Summary | ||
---|---|---|
static
|
cloneArray(T[] items)
Clones a list of objects. |
|
static
|
cloneList(java.util.List<T> items)
Clones a list of objects. |
|
static
|
nullSafeClone(T original)
Clones an object after checking whether the argument is null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T extends JRCloneable> T nullSafeClone(T original)
original
- the object to be cloned
null
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 clone
public static <T extends JRCloneable> T[] cloneArray(T[] items)
JRCloneable
.
items
- the list to clone
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |