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

4
LINES

< > BotCompany Repo | #1031968 // dollarVarsMeanFields

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

Libraryless. Click here for Pure Java version (3478L/19K).

sS dollarVarsMeanFields(S text, O object) {
  ret replaceDollarVars(text, var ->
    !hasFieldNamed(object, var) ? null : str(getOpt(object, var)));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1031968
Snippet name: dollarVarsMeanFields
Eternal ID of this version: #1031968/3
Text MD5: 5d47ee952ef9b15f57e061dc947cff40
Transpilation MD5: 9f224bf1cc73fe7d0099fcc1b18fb308
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-06 01:55:37
Source code size: 153 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 152 / 228
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)