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