站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

CloneableObject (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.util
Class CloneableObject

java.lang.Object
  extended byorg.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 $
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.



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