public interface Copyable
The pattern to perform a deep copy on an object using this Interface comprises a two-step process:
protected Object(Object otherObject).get() by invoking the protected constructor
return new Object(this).| Modifier and Type | Method and Description |
|---|---|
Object |
get()
Returns a deep copy of the object.
|
Object get()
Typical implementation should simple look like: return new Object(this).
Processing Library proscene by Jean Pierre Charalambos. (c) 2014-2017 National University of Colombia