Top "Map" questions

A dictionary maps keys to values allowing efficient retrieval of values by keys.

What are the reasons why Map.get(Object key) is not (fully) generic

What are the reasons behind the decision to not have a fully generic get method in the interface of java.…

java generics collections map
Looking for a good world map generation algorithm

I'm working on a Civilization-like game and I'm looking for a good algorithm for generating Earth-like world maps. I've experimented …

algorithm map terrain
When would I use java Collections singletonMap method?

I don't understand why you would need java Collections singletonMap? Is it useful in multithreaded applications?

java collections map
Hashtable in C++?

I usually use C++ stdlib map whenever I need to store some data associated with a specific type of value (…

c++ performance map hashtable complexity-theory
Multi-valued hashtable in Java

Is it possible to have multiple values for the same key in a hash table? If not, can you suggest …

java collections map hashtable multimap
C++ const map element access

I tried to use the operator[] access the element in a const C++ map, but this method failed. I also …

c++ stl map constants
Calculating area of a polygon drawn on google map

I am looking for an accurate algorithm or a service to calculate surface area on earth where points are calculated …

google-maps map google-maps-api-3 gps polygon
Can't use enum class as unordered_map key

I have a class containing an enum class. class Shader { public: enum class Type { Vertex = GL_VERTEX_SHADER, Geometry = GL_…

c++ c++11 map enums enum-class
Does Java have a HashMap with reverse lookup?

I have data that is organized in kind of a "key-key" format, rather than "key-value". It's like a HashMap, but …

java map hashmap bidirectional reverse-lookup
Apply css to AREA MAP

I'm created a very large map with many poly areas (over 20 coordinates each) for regions within the map. However, you …

html css map area