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

8
LINES

< > BotCompany Repo | #1031192 // dynamicObject_setRawFieldValue

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2786L/17K).

svoid dynamicObject_setRawFieldValue(DynamicObject o, O key, O value) {
  if (o == null) ret;
  
  // double sync, but should be OK here because of locking order o > o.fieldValues
  synchronized(o) {
    o.fieldValues = syncMapPut2_createLinkedHashMap((LinkedHashMap) o.fieldValues, key, value);
  }
}

Author comment

Began life as a copy of #1026007

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031192
Snippet name: dynamicObject_setRawFieldValue
Eternal ID of this version: #1031192/3
Text MD5: 73f24117ac25fdc42a3545bb41fe7a46
Transpilation MD5: d21ac304b18cdae26b2e2ca666142545
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-19 23:34:10
Source code size: 308 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 195 / 378
Version history: 2 change(s)
Referenced in: [show references]