Libraryless. Click here for Pure Java version (9976L/54K).
1 | meta-for IntSize also as Cl, S {
|
2 | static <A extends IntSize> A assertNempty(S msg default "", A a) {
|
3 | if (empty(a)) fail(joinNemptiesWithColon(msg, str(a))); |
4 | ret a; |
5 | } |
6 | } |
7 | |
8 | /*static <A> A assertNempty(A a) {
|
9 | ret assertNempty("empty", a);
|
10 | } |
11 | |
12 | static <A> A assertNempty(S msg, A a) {
|
13 | if (empty(a)) fail(msg + ": " + a); |
14 | ret a; |
15 | }*/ |
Began life as a copy of #1003364
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1004689 |
| Snippet name: | assertNempty (assert not empty) |
| Eternal ID of this version: | #1004689/8 |
| Text MD5: | 0917b3611a194eb9554ef0cbaf6cef80 |
| Transpilation MD5: | 3480eaadd1a165b7af3630fb806ebe8a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2023-01-17 22:16:42 |
| Source code size: | 354 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 918 / 1262 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |