1 | static <A, B> Map<A, B> mapWithSingleValue(Iterable<A> l, B b) { |
2 | new HashMap<A, B> map; |
3 | if (l != null) for (A a : l) |
4 | map.put(a, b); |
5 | ret map; |
6 | } |
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: | #1015752 |
Snippet name: | mapWithSingleValue |
Eternal ID of this version: | #1015752/2 |
Text MD5: | 9b71746f3c1d684df8cb4ed722031f35 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-10 20:07:32 |
Source code size: | 157 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 464 / 492 |
Version history: | 1 change(s) |
Referenced in: | [show references] |