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

14
LINES

< > BotCompany Repo | #1017332 // Test structure/unstructure with transient _persistenceInfo (OK, moved to function)

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

Download Jar. Transpiled version (6204L) is out of date.

1  
!7
2  
3  
set flag structure_debug.
4  
5  
sclass Blubb {
6  
  S a = "aa", b = "bb";
7  
  transient Map<S, O> _persistenceInfo = litmap("a", false);
8  
}
9  
10  
p-exp {
11  
  assertEqualsVerbose([[Blubb(b="bb")]], structure(new Blubb));
12  
  assertEqualsVerbose([[Blubb(a="aa", b="bb")]], structure(nu(Blubb, _persistenceInfo := null)));
13  
  assertEqualsVerbose([[Blubb(a="aa", b="bb")]], structure(nu(Blubb, _persistenceInfo := litmap("a", true))));
14  
}

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: #1017332
Snippet name: Test structure/unstructure with transient _persistenceInfo (OK, moved to function)
Eternal ID of this version: #1017332/9
Text MD5: 41e895a1fca10017fdb71fcba53c7bf9
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-18 21:22:07
Source code size: 429 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 458 / 956
Version history: 8 change(s)
Referenced in: [show references]