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