Libraryless. Click here for Pure Java version (2698L/16K).
1 | sbool isTrue(O o) {
|
2 | if (o instanceof Boolean) |
3 | ret ((Boolean) o).booleanValue(); |
4 | if (o == null) ret false; |
5 | if (o instanceof ThreadLocal) // TODO: remove this |
6 | ret isTrue(((ThreadLocal) o).get()); |
7 | fail(getClassName(o)); |
8 | } |
9 | |
10 | sbool isTrue(Bool b) {
|
11 | ret b != null && b.booleanValue(); |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002662 |
| Snippet name: | isTrue - synonym of booleanValue |
| Eternal ID of this version: | #1002662/6 |
| Text MD5: | 93c3b79e27c21d516a8977540940a063 |
| Transpilation MD5: | e150a3db9ab5b31c232c1418c5ff8838 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-01-02 17:35:19 |
| Source code size: | 308 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1610 / 8977 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |