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

you are viewing a single comment's thread
view the rest of the comments
[–] 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