1 | static <A> A printUnlessNull(A a) {
|
2 | if (a != null) print(a); |
3 | ret a; |
4 | } |
5 | |
6 | static <A> A printUnlessNull(S s, A a) {
|
7 | if (a != null) print(s, a); |
8 | ret a; |
9 | } |
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: | 481 / 521 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |