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

7
LINES

< > BotCompany Repo | #1006698 // isAbstract - check if a class or method is abstract

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (32L/1K).

sbool isAbstract(Class c) {
  ret (c.getModifiers() & Modifier.ABSTRACT) != 0;
}

sbool isAbstract(Method m) {
  ret (m.getModifiers() & Modifier.ABSTRACT) != 0;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006698
Snippet name: isAbstract - check if a class or method is abstract
Eternal ID of this version: #1006698/3
Text MD5: 392437b02ce9f1a5eb2e71228cfbd09c
Transpilation MD5: fbd06c3cc8a026ce3dea8750ac6769c6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-14 18:09:10
Source code size: 169 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 437 / 507
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)