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

3
LINES

< > BotCompany Repo | #1031343 // oneOrNull

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

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

static Int oneOrNull(bool b) {
  ret b ? 1 : null;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031343
Snippet name: oneOrNull
Eternal ID of this version: #1031343/2
Text MD5: 07d4762e11b783ff96f500fa19f90e33
Transpilation MD5: 69af55dd9bb69b967c1f33929ac6149d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-05 17:40:14
Source code size: 54 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 231 / 295
Version history: 1 change(s)
Referenced in: [show references]