import net.openhft.collections.SharedHashMap;
public class Example {
public static void main(String[] args) {
SharedHashMap<String, Integer> map = new SharedHashMap.Builder()
.entries(1000000)
.create();
map.put("key1", 1);
map.put("key2", 2);
map.put("key3", 3);
int value = map.get("key1");
map.remove("key2");
map.forEach((key, val) -> System.out.println(key + ": " + val));
}
}