1 | static <A> A mapToObject(Map<S, O> map, A o) { |
2 | if (map == null) ret o; |
3 | for (S field : keys(map)) |
4 | setOpt(o, field, map.get(field)); |
5 | ret o; |
6 | } |
7 | |
8 | static <A> A mapToObject(Map<S, O> map, Class<A> o) { |
9 | ret mapToObject(map, nu(o)); |
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: | #1009897 |
Snippet name: | mapToObject |
Eternal ID of this version: | #1009897/4 |
Text MD5: | fec1a4943900d0f6fa1a291f706f861f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-10 18:58:13 |
Source code size: | 248 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 568 / 578 |
Version history: | 3 change(s) |
Referenced in: | [show references] |