static S emptyToNull(S s) { ret eq(s, "") ? null : s; } static <A, B> Map<A, B> emptyToNull(Map<A, B> map) { ret empty(map) ? null : map; }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002058 |
Snippet name: | emptyToNull function |
Eternal ID of this version: | #1002058/2 |
Text MD5: | 6cba74ac10bc9bc059aa6c3eea93d3c8 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-12 22:53:57 |
Source code size: | 150 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 759 / 2340 |
Version history: | 1 change(s) |
Referenced in: | [show references] |