I'm asking because inside a hashmap each element would have a signature, then it's easier to compare, no? #question

1 comment

sorted by: hot top controversial new old
[–] 4 points 1 month ago

I'm not sure I understand you, but the signature will most often have a separate ordering that won't help with ordering the objects themselves.

Also, there are TreeMaps, that maintain order of elements, but those do the work on every insert

  • source