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).

1  
!752
2  
3  
// PersistentMap is defined in #1002063
4  
5  
static PersistentMap<S, MyType> map;
6  
7  
static class MyType {
8  
  S a;
9  
  int b;
10  
}
11  
12  
p {
13  
  map = new PersistentMap<S, MyType>("mymap");
14  
  new MyType x;
15  
  x.a = "I am new";
16  
  x.b = map.size();
17  
  map.put("bla " + x.b, x);
18  
  print(structure(map));
19  
}

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