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

11
LINES

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

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

Transpiled version (33L) is out of date.

1  
static int hashCode(O a) {
2  
  ret a == null ? 0 : a.hashCode();
3  
}
4  
5  
static int hashCode(long l) {
6  
  ret Long.hashCode(l);
7  
}
8  
9  
static int hashCode(double d) {
10  
  ret Double.hashCode(d);
11  
}

Author comment

Began life as a copy of #1003332

download  show line numbers  debug dex  old transpilations   

Travelled to 26 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, jozkyjcghlvl, lnbujpyubztb, lpdgvwnxivlt, lulzaavyztxj, mowyntqkapby, 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/4
Text MD5: fa2b5b6eb896e96d420822059869b76e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-12 22:13:32
Source code size: 192 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 631 / 4484
Version history: 3 change(s)
Referenced in: [show references]