/** * Utility returning a copy of the "base" of this instance * This utility does not copy the associations with other instances * * @return a clone of this instance */ public BaseVoltage clone() { BaseVoltage newInstance = new BaseVoltage(this); BaseVoltage newInstanceSP = newInstance; return newInstanceSP; }
/** * Factory of the class * * @param id * id of the class BaseVoltage to create * @return the class created */ public static BaseVoltage create(final String id) { BaseVoltage newBaseVoltage = new BaseVoltage(); newBaseVoltage.setId(id); return newBaseVoltage; }
BaseVoltage newBaseVoltage = new BaseVoltage();