Libraryless. Click here for Pure Java version (3028L/17K).
svoid pnlFieldValueComparison(O obj1, O obj2) { for (S field : joinTreeSets(allFields(obj1), allFields(obj2))) { O a = get(obj1, field); O b = get(obj2, field); if (a != null || b != null) { print(field + ": " + (a == b ? "same " + a : eq(a, b) ? "eq " + a : "diff " + a + " => " + b)); } } }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1031824 |
Snippet name: | pnlFieldValueComparison |
Eternal ID of this version: | #1031824/1 |
Text MD5: | 6b2e24f0d55c0456021f10b71e29b9e6 |
Transpilation MD5: | 4766b3ac465fb8f9e42286fcef7337bd |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-07-11 16:45:21 |
Source code size: | 357 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 130 / 186 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |