Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data


< > BotCompany Repo | #1016557 - objectAsMap - synonym of objectToMap

JavaX fragment (include)

// o is either a map already (string->object) or an arbitrary object,
// in which case its fields are converted into a map.
static Map<S, O> objectAsMap(O o) {
  ret objectToMap(o);

// same for a collection (convert each element)
static L<Map<S, O>> objectAsMap(Collection l) {
  ret objectToMap(l);

download  show line numbers  debug dex   

Travelled to 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

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
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: 150 / 182
Referenced in: [show references]

Formerly at &