1 | static <A> LinkedHashMap<A, Int> multiSetToMapPopularFirst(MultiSet<A> ms) {
|
2 | new LinkedHashMap<A, Int> map; |
3 | if (ms != null) for (A a : ms.getSortedListDescending()) |
4 | map.put(a, ms.get(a)); |
5 | ret map; |
6 | } |
Began life as a copy of #1008498
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1008500 |
| Snippet name: | multiSetToMapPopularFirst |
| Eternal ID of this version: | #1008500/1 |
| Text MD5: | f80bc3cc427efed59768e0db79afb930 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-05-20 12:40:34 |
| Source code size: | 213 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 781 / 815 |
| Referenced in: | [show references] |