Libraryless. Click here for Pure Java version (18107L/113K).
static <A extends Concept> void setRefIfEmpty(Concept.Ref<A> ref, IF0<A> f) { if (ref != null && !ref.has()) ref.set(f?!); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032797 |
Snippet name: | setRefIfEmpty |
Eternal ID of this version: | #1032797/3 |
Text MD5: | 6a7b822cd1419de2b45b426e3f1681b1 |
Transpilation MD5: | b2d43849dd391a5d3b0ef1f641646cfd |
Author: | stefan |
Category: | javax / concepts |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-06 07:13:56 |
Source code size: | 133 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 160 / 218 |
Version history: | 2 change(s) |
Referenced in: | [show references] |