Libraryless. Click here for Pure Java version (3028L/17K).
1 | svoid pnlFieldValueComparison(O obj1, O obj2) { |
2 | for (S field : joinTreeSets(allFields(obj1), allFields(obj2))) { |
3 | O a = get(obj1, field); |
4 | O b = get(obj2, field); |
5 | if (a != null || b != null) { |
6 | print(field + ": " + |
7 | (a == b ? "same " + a |
8 | : eq(a, b) ? "eq " + a |
9 | : "diff " + a + " => " + b)); |
10 | } |
11 | } |
12 | } |
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: | 131 / 189 |
Referenced in: | [show references] |