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

8
LINES

< > BotCompany Repo | #1018570 // assertIsInstance

JavaX fragment (include)

svoid assertIsInstance(Class type, O o) {
  if (!isInstance(type, o))
    fail(_getClass(o) + " is not a subclass of " + type);
}

svoid assertIsInstance(O o, Class type) {
  assertIsInstance(type, o);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018570
Snippet name: assertIsInstance
Eternal ID of this version: #1018570/3
Text MD5: 47925e0cedab12dc4c61cfc0e84d75c8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-06 07:29:38
Source code size: 206 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 434 / 485
Version history: 2 change(s)
Referenced in: [show references]