org.tentackle.util
Class ObjectHelper

java.lang.Object
  extended by org.tentackle.util.ObjectHelper

public class ObjectHelper
extends Object

Generic helper methods applicable to all kinds of objects.

Author:
harald

Constructor Summary
ObjectHelper()
           
 
Method Summary
static Object clone(Object obj)
          Clones an object.
Useful to clone any object, without knowing whether it is cloneable or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectHelper

public ObjectHelper()
Method Detail

clone

public static Object clone(Object obj)
                    throws CloneNotSupportedException
Clones an object.
Useful to clone any object, without knowing whether it is cloneable or not. The method is implemented by using reflection.

Parameters:
obj - the object to clone
Returns:
the cloned object
Throws:
CloneNotSupportedException - if object is not cloneable


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de