Download Jar. Libraryless. Click here for Pure Java version (3007L/18K).
1 | // value is true or false (persistent/transient) |
2 | // but may be extended in the future |
3 | svoid addToPersistenceInfo(O o, S field, O value) { |
4 | if (o == null) ret; |
5 | synchronized(o) { |
6 | Map pi = cast getOpt _persistenceInfo(o); |
7 | if (pi == null) |
8 | setOpt(o, _persistenceInfo := pi = new LinkedHashMap); |
9 | else |
10 | syncMapPut2(pi, field, value); |
11 | } |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031557 |
Snippet name: | addToPersistenceInfo |
Eternal ID of this version: | #1031557/5 |
Text MD5: | 4e94d30699b40bf30ee64b13ce06ab4b |
Transpilation MD5: | d2c780bbac397d9c4d030cd8000a419b |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-22 00:36:42 |
Source code size: | 369 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 276 / 839 |
Version history: | 4 change(s) |
Referenced in: | [show references] |