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

3
LINES

< > BotCompany Repo | #1008173 // compareIfNotNull - compare two BigInts if they're both not null (otherwise return null)

JavaX fragment (include)

1  
static Int compareIfNotNull(BigInt a, BigInt b) {
2  
  ret a == null || b == null ? null : a.compareTo(b);
3  
}

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: #1008173
Snippet name: compareIfNotNull - compare two BigInts if they're both not null (otherwise return null)
Eternal ID of this version: #1008173/1
Text MD5: af17d1bc6f77271b893f794047ef9804
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-29 17:31:05
Source code size: 107 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 490 / 494
Referenced in: [show references]