Beispiel #1
0
 public void removeBlock(Block block) {
   _blocksById.remove(block.getId());
   _blocksByTitle.remove(block.getTitle());
 }
Beispiel #2
0
 public void addAllBlocks(Map<Byte, Block> blocks) {
   _blocksById.putAll(blocks);
   for (Block b : blocks.values()) {
     _blocksByTitle.put(b.getTitle(), b);
   }
 }
Beispiel #3
0
 public void addBlock(Block block) {
   _blocksById.put(block.getId(), block);
   _blocksByTitle.put(block.getTitle(), block);
 }