如何在java中对MultiKeyMap进行排序

时间:2016-04-21 14:07:23

标签: java multimap

我有一些像这样的代码。我想根据值对这个多关键图进行排序。我的multikeymap有(key1,key2,value)。

MultiKeyMap multiKeyMap = new MultiKeyMap();
multiKeyMap.put("New York","IBM",10);
multiKeyMap.put("Sydney","Infosys",3);
multiKeyMap.put("Prague","JP Morgan",14);
multiKeyMap.put("Scotland","RBS",23);
multiKeyMap.put("Paris","Nomura",124);
multiKeyMap.put("Melbourne","Citi Bank",24);
multiKeyMap.put("Aukland","Bank of America",3);

0 个答案:

没有答案