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

12
LINES

< > BotCompany Repo | #1031557 // addToPersistenceInfo

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

Download Jar. Libraryless. Click here for Pure Java version (3007L/18K).

// value is true or false (persistent/transient)
// but may be extended in the future
svoid addToPersistenceInfo(O o, S field, O value) {
  if (o == null) ret;
  synchronized(o) {
    Map pi = cast getOpt _persistenceInfo(o);
    if (pi == null)
      setOpt(o, _persistenceInfo := pi = new LinkedHashMap);
    else
      syncMapPut2(pi, field, value);
  }
}

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: 111 / 524
Version history: 4 change(s)
Referenced in: [show references]