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

3
LINES

< > BotCompany Repo | #1005483 // toStringOpt - convert to String if it's a string (return null otherwise)

JavaX fragment (include)

static S toStringOpt(O o) {
  ret o instanceof S ? o/S : null;
}

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: #1005483
Snippet name: toStringOpt - convert to String if it's a string (return null otherwise)
Eternal ID of this version: #1005483/1
Text MD5: 398c6c5654e5fe9d64e1c3c7c0555ace
Author: stefan
Category: java
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-21 16:29:37
Source code size: 66 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 523 / 534
Referenced in: [show references]