|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jxml.quick.model.qjml.QMCloneable
A publicly cloneable object.
The clone() method on java.lang.Object is protected, while the clone() method on QMCloneable is public.
Additional static support methods are provided.
One of the assumptions made here is that objects which extend QMCloneable have clones which also extend QMCloneable.
Constructor Summary | |
QMCloneable()
|
Method Summary | |
Object |
clone()
Returns a copy of this object. |
static ArrayList |
clone(ArrayList l)
Deep clone a list of QMCloneable objects. |
static QMCloneable |
clone(QMCloneable c)
Clone a QMCloneable object, but first check for null! |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QMCloneable()
Method Detail |
public Object clone()
Returns a copy of this object. This is a public method which overrides the protected method on java.lang.Object.
It is expected that this method will be overridden by classes which extend QMCloneable, the result being a deep clone.
clone
in class Object
public static ArrayList clone(ArrayList l)
Deep clone a list of QMCloneable objects. A convenience method that clones an ArrayList and its contents.
It is assumed that all the objects in the list extend QMCloneable.
public static QMCloneable clone(QMCloneable c)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |