1 | // o is either a map already (string->object) or an arbitrary object, |
2 | // in which case its fields are converted into a map. |
3 | static Map<S, O> objectAsMap(O o) { |
4 | ret objectToMap(o); |
5 | } |
6 | |
7 | |
8 | |
9 | // same for a collection (convert each element) |
10 | static L<Map<S, O>> objectAsMap(Collection l) { |
11 | ret objectToMap(l); |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016557 |
Snippet name: | objectAsMap - synonym of objectToMap |
Eternal ID of this version: | #1016557/1 |
Text MD5: | c29179a7a39594be8a13da11f2bd4a48 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-23 15:23:35 |
Source code size: | 311 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 358 / 419 |
Referenced in: | [show references] |