static boolean stdEq(O a, O b, S... fields) { if (a == null) ret b == null; if (b == null) ret false; if (a.getClass() != b.getClass()) ret false; for (S field : fields) if (neq(getOpt(a, field), getOpt(b, field))) ret false; ret true; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002051 |
Snippet name: | stdEq - field-based equals function |
Eternal ID of this version: | #1002051/1 |
Text MD5: | 8e2e768dc22e31bb39f7cbfca74c9dd6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-12-16 03:20:43 |
Source code size: | 265 bytes / 9 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 683 / 930 |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1003332 - stdHash - field-based object hash function #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) |