1 | static void setOptAll(O o, Map<S, O> fields) { |
2 | if (fields == null) ret; |
3 | for (S field : keys(fields)) |
4 | setOpt/*_flex*/(o, field, fields.get(field)); |
5 | } |
6 | |
7 | static void setOptAll(O o, O... values) { |
8 | //values = expandParams(c.getClass(), values); |
9 | warnIfOddCount(values); |
10 | for (int i = 0; i+1 < l(values); i += 2) { |
11 | S field = (S) values[i]; |
12 | O value = values[i+1]; |
13 | setOpt(o, field, value); |
14 | } |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004782 |
Snippet name: | setOptAll |
Eternal ID of this version: | #1004782/3 |
Text MD5: | 3071cf343f789500daaf3d0635a64eff |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-06 15:52:09 |
Source code size: | 424 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 749 / 745 |
Version history: | 2 change(s) |
Referenced in: | [show references] |