Top "Hashmap" questions

A data structure that uses a hash function to map identifying values, known as keys, to their associated values

Super high performance C/C++ hash map (table, dictionary)

I need to map primitive keys (int, maybe long) to struct values in a high-performance hash map data structure. My …

c++ c dictionary hashtable hashmap
Java : Iteration through a HashMap, which is more efficient?

Given the following code, with two alternative ways to iterate through it, is there any performance difference between these two …

java map performance hashmap iteration
Set Key and Value in spinner

I have a spiner and I want set a key and a value on this,I use of HashMap,It's …

android hashmap spinner
collecting HashMap<String, List<String>> java 8

I want to be able to convert a List to a HashMap where the key is the elementName and the …

java list hashmap java-8 collectors
How does Java order items in a HashMap or a HashTable?

I was wondering how Java orders items in the Map (HashMap or Hashtable) when they are added. Are the keys …

java map hashtable hashmap hashcode
Using a byte array as Map key

Do you see any problem with using a byte array as Map key? I could also do new String(byte[]) …

java hashmap bytearray
Is it safe to get values from a java.util.HashMap from multiple threads (no modification)?

There is a case where a map will be constructed, and once it is initialized, it will never be modified …

java multithreading concurrency hashmap
is the Java HashMap keySet() iteration order consistent?

I understand that the Set returned from a Map's keySet() method does not guarantee any particular order. My question is, …

java iteration hashmap hashset
How to understand Locality Sensitive Hashing?

I noticed that LSH seems a good way to find similar items with high-dimension properties. After reading the paper http://…

c machine-learning hashmap nearest-neighbor locality-sensitive-hash
How to replace HashMap Values while iterating over them in Java

I am using a Runnable to automatically subtract 20 from a players cooldown every second, but I have no idea how …

java hashmap runnable