org.jboss.util
Class CloneableObject

java.lang.Object
  extended byorg.jboss.util.CloneableObject
All Implemented Interfaces:
java.lang.Cloneable

public class CloneableObject
extends java.lang.Object
implements java.lang.Cloneable

A simple base-class for classes which need to be cloneable.


Nested Class Summary
static interface CloneableObject.Cloneable (src)
          An interface which exposes a public clone method, unlike Object.clone() which is protected and throws exceptions...
 
Constructor Summary
CloneableObject()
           
 
Method Summary
 java.lang.Object clone()
          Clone the object via Object.clone().
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloneableObject

public CloneableObject()
Method Detail

clone

public java.lang.Object clone()
Clone the object via Object.clone(). This will return and object of the correct type, with all fields shallowly cloned.