org.omegahat.Environment.DataStructures
Interface Copyable

All Known Subinterfaces:
Trait
All Known Implementing Classes:
GraphicalContainer, TraitLevels

public interface Copyable

An interface that allows callers to "duplicate" an instance of an object whose class implements this interface. The fundamental method allows control of whether the copy is deep or shallow


Method Summary
 java.lang.Object copy()
          Create a copy of this object, using the default for the deep or shallow copy.
 java.lang.Object copy(boolean deepCopy)
          Create a copy this object, controlling how the fields are copied.
 

Method Detail

copy

public java.lang.Object copy()
Create a copy of this object, using the default for the deep or shallow copy.

copy

public java.lang.Object copy(boolean deepCopy)
Create a copy this object, controlling how the fields are copied.
Parameters:
deepCopy - controls whether the contents of the object are also recursively copied or shared by reference with the new object.