package com.onthegomap.planetiler.collection; import com.carrotsearch.hppc.IntObjectHashMap; import com.carrotsearch.hppc.LongByteHashMap; import com.carrotsearch.hppc.LongByteMap; import com.carrotsearch.hppc.LongIntHashMap; import com.carrotsearch.hppc.LongLongHashMap; import com.carrotsearch.hppc.LongObjectHashMap; import com.carrotsearch.hppc.ObjectIntHashMap; /** * Static factory method for High Performance Primitive Collections. */ public class Hppc { public static IntObjectHashMap newIntObjectHashMap() { return new IntObjectHashMap<>(10, 0.75); } public static ObjectIntHashMap newObjectIntHashMap() { return new ObjectIntHashMap<>(10, 0.75); } public static LongLongHashMap newLongLongHashMap() { return new LongLongHashMap(10, 0.75); } public static LongObjectHashMap newLongObjectHashMap() { return new LongObjectHashMap<>(10, 0.75); } public static LongObjectHashMap newLongObjectHashMap(int size) { return new LongObjectHashMap<>(size, 0.75); } public static LongIntHashMap newLongIntHashMap() { return new LongIntHashMap(10, 0.75); } public static LongByteMap newLongByteHashMap() { return new LongByteHashMap(10, 0.75); } }