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