Java: SortedMap, TreeMap, Comparable? How to use?

后端 未结 5 746
别跟我提以往
别跟我提以往 2020-12-06 03:16

I have a list of objects I need to sort according to properties of one of their fields. I\'ve heard that SortedMap and Comparators are the best way to do this.

5条回答
提交回复
热议问题