Libraryless. Click here for Pure Java version (2783L/16K).
sS compareMapsVerbose(Map a, Map b) { ret hijackPrint(r { if (a.size() != b.size()) ret with print("Size of map differs"); for (O key, O value : (Map<O>) a) { if (!b.containsKey(key)) print(key + " not found in map 2"); else { O value2 = b.get(key); if (!eq(value, value2)) print("values for key " + key + " differ"); else print("values for key " + key + " ok"); } } }); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031405 |
| Snippet name: | compareMapsVerbose |
| Eternal ID of this version: | #1031405/2 |
| Text MD5: | 37314d0898fb48ab39be4f371a3d3a07 |
| Transpilation MD5: | cd015d1a5768029c0a7366a696be4fe3 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-11 17:01:12 |
| Source code size: | 473 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 331 / 454 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |