/** * 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 PowerTransformer clone() { PowerTransformer newInstance = new PowerTransformer(this); PowerTransformer newInstanceSP = newInstance; return newInstanceSP; }
/** * Factory of the class * * @param id * id of the class PowerTransformer to create * @return the class created */ public static PowerTransformer create(final String id) { PowerTransformer newPowerTransformer = new PowerTransformer(); newPowerTransformer.setId(id); return newPowerTransformer; }
PowerTransformer newPowerTransformer = new PowerTransformer();