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