protected ComponentParameter cloneComponentParameter(ComponentParameter componentParameter) throws IntactClonerException { if (componentParameter == null) { throw new IllegalArgumentException("You must give a non null component parameter"); } ComponentParameter clone = new ComponentParameter(); clonerManager.addClone(componentParameter, clone); clone.setBase(componentParameter.getBase()); clone.setExponent(componentParameter.getExponent()); clone.setFactor(componentParameter.getFactor()); clone.setUncertainty(componentParameter.getUncertainty()); clone.setCvParameterType(clone(componentParameter.getCvParameterType())); clone.setCvParameterUnit(clone(componentParameter.getCvParameterUnit())); clone.setComponent(componentParameter.getComponent()); return clone; }
protected ComponentParameter cloneComponentParameter(ComponentParameter componentParameter) throws IntactClonerException { if (componentParameter == null) { throw new IllegalArgumentException("You must give a non null component parameter"); } ComponentParameter clone = new ComponentParameter(); clonerManager.addClone(componentParameter, clone); clone.setBase(componentParameter.getBase()); clone.setExponent(componentParameter.getExponent()); clone.setFactor(componentParameter.getFactor()); clone.setUncertainty(componentParameter.getUncertainty()); clone.setCvParameterType(clone(componentParameter.getCvParameterType())); clone.setCvParameterUnit(clone(componentParameter.getCvParameterUnit())); clone.setComponent(componentParameter.getComponent()); return clone; }