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

    Modifier and Type
    Method
    Description
    Creates a binary clone of this object.
  • Method Details

    • clone

      Object clone()
      Creates a binary clone of this object.
      Returns:
      a clone of this object.