/** * Returns a cloned version of the current object. * * @return a cloned version of the current Experiment with following exceptions. <ul> <li>Interactions are not * cloned. The interactions for the cloned experiment is empty</li> <li>New components but with the same * proteins. The new components has the cloned interaction as their interaction.</li> </ul> * * @throws CloneNotSupportedException */ @Override public Object clone() throws CloneNotSupportedException { Experiment copy = ( Experiment ) super.clone(); // Not copying any interactions. copy.interactions = new ArrayList<Interaction>(); return copy; }
Component copy = ( Component ) super.clone();
Feature copy = ( Feature ) super.clone();
Feature copy = ( Feature ) super.clone();
Feature copy = ( Feature ) super.clone();
Component copy = ( Component ) super.clone();
Component copy = ( Component ) super.clone();