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

19
LINES

< > BotCompany Repo | #1002064 // Persistent Map Test with custom data type

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1115L/8K/26K).

!752

// PersistentMap is defined in #1002063

static PersistentMap<S, MyType> map;

static class MyType {
  S a;
  int b;
}

p {
  map = new PersistentMap<S, MyType>("mymap");
  new MyType x;
  x.a = "I am new";
  x.b = map.size();
  map.put("bla " + x.b, x);
  print(structure(map));
}

Author comment

Began life as a copy of #1001973

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002064
Snippet name: Persistent Map Test with custom data type
Eternal ID of this version: #1002064/1
Text MD5: 46f83edb5b4bcf392367f69bfea6cbd5
Transpilation MD5: 14887f4e300fd231c308a1a6e4fb7742
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-15 21:51:20
Source code size: 307 bytes / 19 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 672 / 715
Referenced in: [show references]