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