Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1005433 // stdHash2 - field-based object hash function

JavaX fragment (include)

static int stdHash2(O a) {
  if (a == null) ret 0;
  ret stdHash(a, toStringArray(allFields(a)));
}

Author comment

Began life as a copy of #1003332

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005433
Snippet name: stdHash2 - field-based object hash function
Eternal ID of this version: #1005433/1
Text MD5: bf369625ac6564db793c4b6cf570b747
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-16 20:05:28
Source code size: 102 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 523 / 527
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1035997 - stdHash_nonTransient - use all non-transient fields for hash function