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

19
LINES

< > BotCompany Repo | #1001973 // Persistent Log Test with custom data type

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

Libraryless. Click here for Pure Java version (1088L/7K/25K).

!752

// PersistentLog is defined in #1001972

static PersistentLog<MyType> log;

static class MyType {
  S a;
  int b;
}

p {
  log = new PersistentLog<MyType>("mylog");
  new MyType x;
  x.a = "I am new";
  x.b = l(log);
  log.add(x);
  print(structure(log));
}

Author comment

Began life as a copy of #1001971

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: #1001973
Snippet name: Persistent Log Test with custom data type
Eternal ID of this version: #1001973/1
Text MD5: 68270e7364af91adc2f888f800a36793
Transpilation MD5: 213b045517b6a01e1b573129f9e66264
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:10
Source code size: 283 bytes / 19 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 665 / 734
Referenced in: [show references]