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

3
LINES

< > BotCompany Repo | #1006015 // strOrEmpty - convert to string with str() or leave as "" when null

JavaX fragment (include)

static S strOrEmpty(O o) {
  ret o == null ? "" : str(o);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006015
Snippet name: strOrEmpty - convert to string with str() or leave as "" when null
Eternal ID of this version: #1006015/1
Text MD5: db311b044c880631393c9416e19b5593
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-14 12:52:23
Source code size: 61 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 606 / 594
Referenced in: [show references]