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

3
LINES

< > BotCompany Repo | #1003786 // orFail - pass on value or fail if null

JavaX fragment (include)

1  
static <A> A orFail(S failMsg, A a) {
2  
  ret assertNotNull(failMsg, a);
3  
}

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: #1003786
Snippet name: orFail - pass on value or fail if null
Eternal ID of this version: #1003786/1
Text MD5: 591741c81926b590d4512943d768ab44
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-27 15:25:28
Source code size: 74 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 467 / 457
Referenced in: [show references]