org.apache.geronimo.common
Class CloneableObject

java.lang.Object
  extended byorg.apache.geronimo.common.CloneableObject
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
Counter, LongCounter

public class CloneableObject
extends Object
implements Cloneable

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

Version:
$Revision: 1.7 $ $Date: 2004/03/10 09:58:25 $

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.



Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.