29 |
|
if (args.length > 0) { |
30 |
|
try { |
31 |
|
mapClass = Class.forName(args[0]); |
32 |
< |
} catch(ClassNotFoundException e) { |
32 |
> |
} catch (ClassNotFoundException e) { |
33 |
|
throw new RuntimeException("Class " + args[0] + " not found."); |
34 |
|
} |
35 |
|
} |
77 |
|
try { |
78 |
|
Map m = (Map<Integer,Integer>)cl.newInstance(); |
79 |
|
return m; |
80 |
< |
} catch(Exception e) { |
80 |
> |
} catch (Exception e) { |
81 |
|
throw new RuntimeException("Can't instantiate " + cl + ": " + e); |
82 |
|
} |
83 |
|
} |
219 |
|
int sum = 0; |
220 |
|
timer.start("Iter Key ", size); |
221 |
|
for (Iterator it = s.keySet().iterator(); it.hasNext(); ) { |
222 |
< |
if(it.next() != MISSING) |
222 |
> |
if (it.next() != MISSING) |
223 |
|
++sum; |
224 |
|
} |
225 |
|
timer.finish(); |
232 |
|
int sum = 0; |
233 |
|
timer.start("Iter Value ", size); |
234 |
|
for (Iterator it = s.values().iterator(); it.hasNext(); ) { |
235 |
< |
if(it.next() != MISSING) |
235 |
> |
if (it.next() != MISSING) |
236 |
|
++sum; |
237 |
|
} |
238 |
|
timer.finish(); |
244 |
|
int sum = 0; |
245 |
|
timer.start("Iter Entry ", size); |
246 |
|
for (Iterator it = s.entrySet().iterator(); it.hasNext(); ) { |
247 |
< |
if(it.next() != MISSING) |
247 |
> |
if (it.next() != MISSING) |
248 |
|
++sum; |
249 |
|
} |
250 |
|
timer.finish(); |