|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--drcl.util.ObjectUtil
| Constructor Summary | |
ObjectUtil()
|
|
| Method Summary | |
static java.lang.Object |
clone(java.lang.Object o_)
Returns the clone of o_. |
static java.lang.Object |
clone(java.lang.Object o_,
boolean raiseException_)
Returns the clone of o_. |
static boolean |
equals(java.lang.Object o1_,
java.lang.Object o2_)
Returns true if o1_ is equal to o2_. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObjectUtil()
| Method Detail |
public static java.lang.Object clone(java.lang.Object o_)
o_.
It calls o_.clone(), if possible, and
returns null if fails.
public static java.lang.Object clone(java.lang.Object o_,
boolean raiseException_)
o_.
It calls o_.clone(), if possible, and
either raises an exception or returns null if fails.raiseException_ - set to true if one wishes to get exception
instead of receiving null when this method fails to call
o_.clone().
public static boolean equals(java.lang.Object o1_,
java.lang.Object o2_)
o1_ is equal to o2_.
It is mainly for comparing arrays of objects.
The equals() of a Java array does not compare
the content of array. This method checks the content (recursively)
in the array and returns true if all the content are equal under
this method.
If the arguments are not array, then the method simply returns
o1_.equals(o2_).
|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||