Class Copier

java.lang.Object
  |
  +--Copier

class Copier
extends java.lang.Object

Copier exists to provide one static method, maybeClone which makes a clone of its argument, or returns the argument itself if not.


Field Summary
(package private) static java.lang.Object[] args
           
(package private) static java.lang.Class[] noArgs
           
 
Constructor Summary
(package private) Copier()
           
 
Method Summary
(package private) static java.lang.Object maybeClone(java.lang.Object ob)
          Copies an Object, as far as that is possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noArgs

static java.lang.Class[] noArgs

args

static java.lang.Object[] args
Constructor Detail

Copier

Copier()
Method Detail

maybeClone

static java.lang.Object maybeClone(java.lang.Object ob)
Copies an Object, as far as that is possible. If the Object implements the Cloneable interface, then returns a Clone of the Object. Otherwise returns the Object itself.