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

7
LINES

< > BotCompany Repo | #1033881 // hasSingleArgumentConstructor

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

Transpiled version (4564L) is out of date.

sbool hasSingleArgumentConstructor(Class c) {
  if (c != null)
    for (Constructor m : getDeclaredConstructors_cached(c))
      if (l(m.getParameterTypes()) == 1)
        true;
  false;
}

Author comment

Began life as a copy of #1033878

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033881
Snippet name: hasSingleArgumentConstructor
Eternal ID of this version: #1033881/2
Text MD5: ebe0940f4ee2f05fa4c62f6aeb1f0cf9
Author: stefan
Category: javax / reflection
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-29 19:41:39
Source code size: 194 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 76 / 124
Version history: 1 change(s)
Referenced in: [show references]