Java: Sorted collection which allows duplicates, is memory efficient and provides fast insert + update

前端 未结 6 1102
野的像风
野的像风 2020-12-15 05:11

Specifically I need a collection which uses one field A for accessing and a different one (field S) for sorting but a sorted collection which accepts duplicate would be suff

6条回答
  •  無奈伤痛
    2020-12-15 05:46

    I have good experience with TreeMultimap https://guava.dev/releases/19.0/api/docs/com/google/common/collect/TreeMultimap.html

提交回复
热议问题