/** * Removes a Nation from the Datasource * * @param nation */ public boolean removeNation(Nation nation) { boolean result = nations.remove(nation.getName()) != null; for (Town t : towns.values()) if (t.hasNation(nation)) t.removeNation(nation); return result; }
/** * Adds a Nation to the Datasource * * @param nation */ public void addNation(Nation nation) throws Exception { nations.put(nation.getName(), nation); }