Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data


< > BotCompany Repo | #1002662 - isTrue - synonym of booleanValue

JavaX fragment (include)

static boolean isTrue(O o) {
  if (o instanceof Boolean)
    ret ((Boolean) o).booleanValue();
  if (o == null) ret false;
  if (o instanceof ThreadLocal) // TODO: remove this
    ret isTrue(((ThreadLocal) o).get());

download  show line numbers  debug dex   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1002662
Snippet name: isTrue - synonym of booleanValue
Eternal ID of this version: #1002662/5
Text MD5: 58262c5e2d9d978b83bbdfff854311e6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-15 23:46:39
Source code size: 250 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 694 / 7476
Version history: 4 change(s)
Referenced in: [show references]

Formerly at &