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   

Travelled to 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, sawdedvomwva, tslmcundralx, tvejysmllsmz

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: 340 / 313
Referenced in: [show references]

Formerly at http://tinybrain.de/1006015 & http://1006015.tinybrain.de