Libraryless. Click here for Pure Java version (15857L/102K).
static int cSmartSet_withConverter_pcall(bool verbose default false, Concept c, O... values) { ret cSmartSet_withConverter_pcall(verbose, new DefaultValueConverterForField, c, values); } // returns number of changes static int cSmartSet_withConverter_pcall(bool verbose default false, ValueConverterForField converter, Concept c, O... values) ctex { if (c == null) ret 0; warnIfOddCount(values = unrollAndExpandParams(c.getClass(), values)); int changes = 0; for (int i = 0; i+1 < l(values); i += 2) pcall { if (cSmartSetField_withConverter(c, (S) values[i], values[i+1], converter, verbose)) ++changes; } ret changes; }
Began life as a copy of #1029595
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031534 |
Snippet name: | cSmartSet_withConverter_pcall - set fields in Concept object with converter |
Eternal ID of this version: | #1031534/5 |
Text MD5: | dc11eaaa1cad726e7b7a6fb92836b269 |
Transpilation MD5: | b77beb6513d1b73f738441f21b3e3dd3 |
Author: | stefan |
Category: | javax / concepts |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-22 09:53:18 |
Source code size: | 652 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 192 / 249 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |