1 | static <A, B> L<Pair<A, B>> pairsSortedByAComparator(final Comparator<A> c, Collection<Pair<A, B>> l) { |
2 | ret sortedByComparator(l, new Comparator<Pair<A, B>>() { |
3 | public int compare(Pair<A, B> a, Pair<A, B> b) { |
4 | ret c.compare(a.a, b.a); |
5 | } |
6 | }); |
7 | } |
Began life as a copy of #1017209
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017304 |
Snippet name: | pairsSortedByAComparator |
Eternal ID of this version: | #1017304/3 |
Text MD5: | 408db474ae9a0d35b123b627f1f29c23 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-16 15:55:06 |
Source code size: | 266 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 379 / 409 |
Version history: | 2 change(s) |
Referenced in: | [show references] |