Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sf.jasperreports.engine.util
Class JRCloneUtils

    java.lang.Object
      net.sf.jasperreports.engine.util.JRCloneUtils

    public final class JRCloneUtils

extends java.lang.Object

Cloning related utility methods.

Version:
  $Id: JRCloneUtils.java 3712 2010-04-08 09:53:09Z teodord $
Author:
  Lucian Chirita (lucianc@users.sourceforge.net)

Method Summary
`static java.util.List` | `cloneList(java.util.List items)` Clones a list of objects.
`static java.lang.Object` | `nullSafeClone(JRCloneable 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

### nullSafeClone

    public static java.lang.Object nullSafeClone(JRCloneable original)

  Clones an object after checking whether the argument is null.

  Parameters:
    `original` - the object to be cloned
  Returns:
    a clone of the argument, or `null` if the argument was `null`

### cloneList

    public static java.util.List cloneList(java.util.List items)

  Clones a list of objects. The list elements are assumed to implement `JRCloneable`.

  Parameters:
    `items` - the list to clone
  Returns:
    a new list which contains clones of the elements in the original list

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

© 2001-2010 Jaspersoft Corporation www.jaspersoft.com