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

8
LINES

< > BotCompany Repo | #1013148 // mapToListOfMaps - for displaying maps in a table (JTable/htable)

JavaX fragment (include)

static <A> L<Map<A, O>> mapToListOfMaps(Map map, A keyName, A valueName) {
  new L<Map<A, O>> l;
  for (O key : map.keySet()) {
    O value = map.get(key);
    l.add(litorderedmap(keyName, key, valueName, value));
  }
  ret l;
}

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: #1013148
Snippet name: mapToListOfMaps - for displaying maps in a table (JTable/htable)
Eternal ID of this version: #1013148/5
Text MD5: 70a7c478f9725ee18772eb0d3f56114b
Author: stefan
Category: javax / a.i. / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-30 19:12:56
Source code size: 235 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 381 / 400
Version history: 4 change(s)
Referenced in: [show references]