public class BasicSerialCloner extends java.lang.Object implements java.io.Serializable, SerialCloner<MemorizerPackage>
| Constructor and Description |
|---|
BasicSerialCloner()
Constructor for this class.
|
| Modifier and Type | Method and Description |
|---|---|
MemorizerPackage |
cloneThisObject(MemorizerPackage obj)
This method produces a deep clone of the object.
|
boolean |
memorize(Memorizable obj)
This method memorize a part of the Memorizable instance that is specified in the method getMemoryPackage().
|
boolean |
memorize(MemorizerPackage obj)
This method memorizes a Serializable object.
|
MemorizerPackage |
retrieve()
This method returns the serialized object.
|
public boolean memorize(MemorizerPackage obj)
obj - the Object instance to be serialized.public boolean memorize(Memorizable obj)
obj - a Memorizable objectpublic MemorizerPackage retrieve()
public MemorizerPackage cloneThisObject(MemorizerPackage obj)
SerialClonercloneThisObject in interface SerialCloner<MemorizerPackage>obj - the object of class P to be cloned