Transpiled version (2481L) is out of date.
1 | static <A, B> L<A> keysWithValueThat(IPred<B> pred, Map<A, B> map) { |
2 | if (map == null) null; |
3 | new L<A> l; |
4 | for (Map.Entry<A, B> e : map.entrySet()) |
5 | if (pred.get(e.getValue())) |
6 | l.add(e.getKey()); |
7 | ret l; |
8 | } |
9 | |
10 | static <A, B> L<A> keysWithValueThat(Map<A, B> map, IPred<B> pred) { |
11 | ret keysWithValueThat(pred, map); |
12 | } |
Began life as a copy of #1008062
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028141 |
Snippet name: | keysWithValueThat - filter on value predicate |
Eternal ID of this version: | #1028141/2 |
Text MD5: | 282ca1f3a17b05ee7165e29ec1e3d65f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-05-23 13:52:04 |
Source code size: | 333 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 214 / 301 |
Version history: | 1 change(s) |
Referenced in: | [show references] |