[concurrency-interest] Double as a key in TreeMap

George Kovoor mydevgroup at gmail.com
Thu May 31 16:01:45 EDT 2012


Hello,
Could anyone please advise if using Double as a key in TreeMap is
safe, safe in the sense will it result in consistent output.
I am worried about the floating point precision, that might result in
key misses , is my understanding correct. Is using Double recommend in
Java

Any feedback is very much appreciated

Thanks
George


More information about the Concurrency-interest mailing list