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

8
LINES

< > BotCompany Repo | #1035256 // hasStaticMethodNamed

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

Libraryless. Click here for Pure Java version (7884L/44K).

sbool hasStaticMethodNamed(Class c, S method) {
  if (c == null) false;
  var methods = getMethodCache(c).cache.get(method);
  if (methods != null) for (m : methods)
    if (isStaticMethod(m))
      true;
  false;
}

Author comment

Began life as a copy of #1002180

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035256
Snippet name: hasStaticMethodNamed
Eternal ID of this version: #1035256/1
Text MD5: 66962cca1519871103c30904ee2e1a93
Transpilation MD5: 2d4146870321369079efcf77fedf6df0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-27 14:12:57
Source code size: 222 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 161 / 234
Referenced in: [show references]