What is the difference between Koloboke HashObjObj<K, V>
and Java util HashMap<K, V>
?
I am aware of the performance that Koloboke provides but there might be instances that K/V turn out to be a Integer/Long. Generally if known HashLongObjMap
would be recommended but what happens when K/V come in as generics. From what I understand using HashLongObjMap
uses long
primitive as the key but what are the differences that come in when HashObjObjMap<Long, V>
is used?
Eg:
HashLongObjMap<V> map1 = HashLongObjMaps.newImmutableMap();
Vs
HashObjObjMap<K, V> map2 = HashObjObjMaps.newImmutableMap();