Assert.assertEquals(Data.s1.length, c.intValue());
c.set(0);
final ConcurrentHashMap<Integer, Object> cc = new ConcurrentHashMap<Integer, Object>();
final Indexer indexer = Indexer.NEW();
$(Data.sn).map(new F1<String, Void>() {
@SuppressWarnings("boxing")
@Override
public Void f(String x) {
c.getAndIncrement();
if(cc.containsKey(indexer.i())) System.out.println("DOUBLE " + indexer.i());
cc.put(indexer.i(), new Object());
return null;
}
}, indexer);
Assert.assertEquals(Data.sn.length, c.intValue());