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

3
LINES

< > BotCompany Repo | #1004846 - isSubtypeOf - is a class a subtype of another class?

JavaX fragment (include)

static bool isSubtypeOf(Class a, Class b) {
  ret a != null && b != null && b.isAssignableFrom(a); // << always hated that method, let's replace it!
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004846
Snippet name: isSubtypeOf - is a class a subtype of another class?
Eternal ID of this version: #1004846/2
Text MD5: c445493cb369d04b5d00f587a9bed760
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-11-15 23:10:31
Source code size: 152 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 514 / 866
Version history: 1 change(s)
Referenced in: [show references]