Package org.pipservices3.commons.data
Interface ICloneable
public interface ICloneable
Interface for data objects that are able to create their full binary copy,.
### Example ###
public class MyClass implements IMyClass, ICloneable {
MyClass() { };
public Object clone() {
Object cloneObj = new Object (this);
// Copy every attribute from this to cloneObj here.
...
return cloneObj;
}
}
-
Method Summary
-
Method Details
-
clone
Object clone()Creates a binary clone of this object.- Returns:
- a clone of this object.
-