1 | static <A> L<A> sortedByMapLookup(Collection<A> l, final Map<A, ?> map) { |
2 | ret sortedByComparator(l, new Comparator<A>() { |
3 | public int compare(A a, A b) { |
4 | ret stdcompare(map.get(a), map.get(b)); |
5 | } |
6 | }); |
7 | } |
Began life as a copy of #1015106
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018577 |
Snippet name: | sortedByMapLookup |
Eternal ID of this version: | #1018577/1 |
Text MD5: | 95734bef97a977f34b36daf00c4a403b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-06 16:02:43 |
Source code size: | 224 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 340 / 346 |
Referenced in: | [show references] |