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