org.jboss.arquillian.ajocado.utils
Class CloneUtils
java.lang.Object
org.jboss.arquillian.ajocado.utils.CloneUtils
public final class CloneUtils
- extends Object
Provides functionality for cloning objects.
- Author:
- lfryc
Method Summary |
static
|
clone(Class<T> type,
T objectToClone)
Clones the cloneable object without need to check for exceptions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clone
public static <T extends Cloneable> T clone(Class<T> type,
T objectToClone)
- Clones the cloneable object without need to check for exceptions.
- Type Parameters:
T
- the cloneable object type- Parameters:
type
- the type of cloneable objectobjectToClone
- object to clone
- Returns:
- the clone of object
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.