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