Libraryless. Click here for Pure Java version (3061L/19K).
static Map<S, O> dm_originalFieldValues(O mod) { mod = dm_getModule(mod); if (mod == null) null; O tempInstance = newInstance(mod.getClass()); try { new Map<S, O> map; for (S field : allNonTransientNonStaticFields(mod)) map.put(field, getOpt(tempInstance, field)); ret map; } finally { cleanUp(tempInstance); } }
Began life as a copy of #1024027
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1025067 |
| Snippet name: | dm_originalFieldValues (non-transient only) |
| Eternal ID of this version: | #1025067/1 |
| Text MD5: | 5ce752523fe2861bd7c2afe4ad172b12 |
| Transpilation MD5: | 30d008fd66e1375f544f2962954c8a69 |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-09-05 11:48:13 |
| Source code size: | 358 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 404 / 528 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1025069 - dm_changedFieldValues (from constructor defaults, non-transient only) |