Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.utils
Class CloneUtils

java.lang.Object
  extended by org.jboss.arquillian.ajocado.utils.CloneUtils

public final class CloneUtils
extends Object

Provides functionality for cloning objects.

Author:
lfryc

Method Summary
static
<T extends Cloneable>
T
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
 

Method Detail

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 object
objectToClone - object to clone
Returns:
the clone of object

Graphene Implementation 1.0.0.CR3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.