org.tentackle.util
Class ObjectHelper
java.lang.Object
org.tentackle.util.ObjectHelper
public class ObjectHelper
- extends Object
Generic helper methods applicable to all kinds of objects.
- Author:
- harald
|
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 |
ObjectHelper
public ObjectHelper()
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