The Encog Project

org.encog.util
Class ObjectCloner

java.lang.Object
  extended by org.encog.util.ObjectCloner

public final class ObjectCloner
extends java.lang.Object

A simple Object cloner that uses serialization. Actually works really well for the somewhat complex nature of BasicNetwork. Performs a deep copy without all the headache of programming a custom clone. Original by Dave Miller here: http://www.javaworld.com/javaworld/javatips/jw-javatip76.html?page=2


Method Summary
static java.lang.Object deepCopy(java.lang.Object oldObj)
          Perform a deep copy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deepCopy

public static java.lang.Object deepCopy(java.lang.Object oldObj)
Perform a deep copy.

Parameters:
oldObj - The old object.
Returns:
The new object.

The Encog Project