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

  • lad@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    21 days 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