标签: java algorithm collections
如何始终实现?
compareTo方法或compare方法应与equals或TreeMap中存储的对象的TreeSet方法一致吗?
compareTo
compare
equals
TreeMap
TreeSet