org.jboss.util
Class CloneableObject

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

public class CloneableObject
extends Object
implements Cloneable

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

Version:
$Revision: 1.2.18.1 $
Author:
Jason Dillon

Nested Class Summary
static interface CloneableObject.Cloneable
          An interface which exposes a public clone method, unlike Object.clone() which is protected and throws exceptions...
 
Constructor Summary
CloneableObject()
           
 
Method Summary
 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 Object clone()
Clone the object via Object.clone(). This will return and object of the correct type, with all fields shallowly cloned.

Overrides:
clone in class Object


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.