Ejemplo n.º 1
0
 private static Block[] reduceToArray(ObjToIntMap map) {
   Block[] result = null;
   if (!map.isEmpty()) {
     result = new Block[map.size()];
     int i = 0;
     ObjToIntMap.Iterator iter = map.newIterator();
     for (iter.start(); !iter.done(); iter.next()) {
       FatBlock fb = (FatBlock) (iter.getKey());
       result[i++] = fb.realBlock;
     }
   }
   return result;
 }