1 | static <A, B> L<B> lookupAllOpt(Map<A, B> map, Collection<A> l) { |
2 | new L<B> out; |
3 | if (l != null) for (A a : l) |
4 | addIfNotNull(out, map.get(a)); |
5 | ret out; |
6 | } |
7 | |
8 | static <A, B> L<B> lookupAllOpt(Collection<A> l, Map<A, B> map) { |
9 | ret lookupAllOpt(map, l); |
10 | } |
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: | #1010182 |
Snippet name: | lookupAllOpt - look up a whole list in a map, returning only found entries |
Eternal ID of this version: | #1010182/5 |
Text MD5: | 8c91cbc171c0a022dffa276133dc97e8 |
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:35:47 |
Source code size: | 267 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 478 / 510 |
Version history: | 4 change(s) |
Referenced in: | [show references] |