1 | static <A> L<A> keysAndValues(Map<A> map) { |
2 | new L<A> l; |
3 | if (map != null) |
4 | for (Map.Entry<A> e : map.entrySet()) { |
5 | l.add(e.getKey()); |
6 | l.add(e.getValue()); |
7 | } |
8 | ret l; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022134 |
Snippet name: | keysAndValues - as interleaving list, no uniquifying |
Eternal ID of this version: | #1022134/3 |
Text MD5: | b6180af821356e042c885956a539959e |
Author: | stefan |
Category: | javax / gazelle |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-08 11:40:22 |
Source code size: | 197 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 310 / 331 |
Version history: | 2 change(s) |
Referenced in: | [show references] |