/** * Removes a TownBlock from the Datasource * * @param townBlock */ public boolean removeTownBlock(TownBlock townBlock) { return blocks.remove(townBlock.getKey()) != null; }
/** * Adds a TownBlock to the Datasource * * @param townBlock */ public void addTownBlock(TownBlock townBlock) throws Exception { blocks.put(townBlock.getKey(), townBlock); }