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

3
LINES

< > BotCompany Repo | #1035192 // str_nullIfEmpty - convert to string, empty string becomes null

JavaX fragment (include)

sS str_nullIfEmpty(O o) {
  ret nullIfEmpty(strOrNull(o));
}

Author comment

Began life as a copy of #1002091

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035192
Snippet name: str_nullIfEmpty - convert to string, empty string becomes null
Eternal ID of this version: #1035192/1
Text MD5: a3a459ea6241b9c748b0723836f23565
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-11 18:19:18
Source code size: 62 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 50 / 56
Referenced in: [show references]