【发布时间】:2016-10-11 19:38:14
【问题描述】:
我有以下树形图
private TreeMap<Long, HashMap<Long, Entry>> index;
条目包含:
int tf //count
ArrayList<long> off //positions
对于树形图中的每个条目,我想按 tf.在下图中,[3] 的 tf 具有更大的 [0] 的 tf 值,因此我想将其移至开头。我该怎么做?
【问题讨论】:
标签: java sorting hashmap treemap