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


< > BotCompany Repo | #1003334 // hashCode - get hash code of object or 0 for null

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (33L/1K).

static int hashCode(O a) {
  ret a == null ? 0 : a.hashCode();

static int hashCode(long l) {
  ret Long.hashCode(l);

Author comment

Began life as a copy of #1003332

download  show line numbers  debug dex  old transpilations   

Travelled to 25 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, jozkyjcghlvl, lnbujpyubztb, lpdgvwnxivlt, lulzaavyztxj, mqqgnosmbjvj, mqsvbyillbrs, odhhsrjjbcgr, onxytkatvevr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, qgvkllrfbgaw, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1003334
Snippet name: hashCode - get hash code of object or 0 for null
Eternal ID of this version: #1003334/3
Text MD5: 6a749abaeb06df4ca30d66e913328571
Transpilation MD5: 681f2ba1b7045f066221c29bd6d03e0f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-06 20:55:57
Source code size: 127 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 494 / 4287
Version history: 2 change(s)
Referenced in: [show references]