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.

!7

set flag structure_debug.

sclass Blubb {
  S a = "aa", b = "bb";
  transient Map<S, O> _persistenceInfo = litmap("a", false);
}

p-exp {
  assertEqualsVerbose([[Blubb(b="bb")]], structure(new Blubb));
  assertEqualsVerbose([[Blubb(a="aa", b="bb")]], structure(nu(Blubb, _persistenceInfo := null)));
  assertEqualsVerbose([[Blubb(a="aa", b="bb")]], structure(nu(Blubb, _persistenceInfo := litmap("a", true))));
}

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: 605 / 1244
Version history: 8 change(s)
Referenced in: #1017333 - Test structure/unstructure with non-transient _persistenceInfo (OK, moved to test_structure_nonTransientPersistenceInfo)
#1031526 - test_structure_transientPersistenceInfo