static <A, B> L<B> lookupAllOpt(Map<A, B> map, Collection<A> l) { new L<B> out; if (l != null) for (A a : l) addIfNotNull(out, map.get(a)); ret out; } static <A, B> L<B> lookupAllOpt(Collection<A> l, Map<A, B> map) { ret lookupAllOpt(map, l); }
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: | 479 / 510 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1010762 - lookupToMap - returns ordered map #1010788 - lookupAllOpt2 - look up a whole list in a map, returning only found entries; also returns keys not found #1010994 - getAll - synonym of lookupAllOpt + getVars #1015109 - lookupAllAsCISet |