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