int count = 20;
long time=0, t1=0, t2 = 0;
String data = "SomeData_";
LongHashMap map = new LongHashMap();
for (long i=0; i<count; i+= 5) {
map.put(i, data + i);
}
for (long i=1; i<count; i+= 3) {
map.put(i, data + i);
}
for (long i=3; i<count; i+= 4) {
map.put(i, data + i);
}
for (long i=-23; i<count; i+= 4) {
map.put(i, data + i);
}
for (long j=-25; j<25; j++) {
System.out.println("Key: " + j + "; val: " + map.get(j));
}
t2 = System.currentTimeMillis();