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