1 | static <A, B> Map<A, B> lookupToMap(Map<A, B> map, Collection<A> l) {
|
2 | new LinkedHashMap<A, B> out; |
3 | if (l != null) for (A a : l) |
4 | mapPut(out, a, map.get(a)); |
5 | ret out; |
6 | } |
7 | |
8 | static <A, B> Map<A, B> lookupToMap(Collection<A> l, Map<A, B> map) {
|
9 | ret lookupToMap(map, l); |
10 | } |
Began life as a copy of #1010182
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: | #1010762 |
| Snippet name: | lookupToMap - returns ordered map |
| Eternal ID of this version: | #1010762/2 |
| Text MD5: | 50188764d5f5d5bb61b12b88348f75cb |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-30 02:37:42 |
| Source code size: | 285 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 646 / 688 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |