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

7
LINES

< > BotCompany Repo | #1019138 // hasSuperclassShortNamed

JavaX fragment (include)

1  
sbool hasSuperclassShortNamed(O o, S name) {
2  
  Class c = _getClass(o);
3  
  while (c != null)
4  
    if (shortClassNameIs(c, name)) true;
5  
    else c = c.getSuperclass();
6  
  false;
7  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019138
Snippet name: hasSuperclassShortNamed
Eternal ID of this version: #1019138/3
Text MD5: 8ab01e79052e706834b0e4bdff67029d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-24 21:51:46
Source code size: 180 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 340 / 397
Version history: 2 change(s)
Referenced in: [show references]