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

9
LINES

< > BotCompany Repo | #1021986 // printUnlessNull

JavaX fragment (include)

static <A> A printUnlessNull(A a) {
  if (a != null) print(a);
  ret a;
}

static <A> A printUnlessNull(S s, A a) {
  if (a != null) print(s, a);
  ret a;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1021986
Snippet name: printUnlessNull
Eternal ID of this version: #1021986/2
Text MD5: 84168fcd4ee3dfd7c8352d9731891d5a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-24 11:27:19
Source code size: 164 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 201 / 234
Version history: 1 change(s)
Referenced in: [show references]