Libraryless. Click here for Pure Java version (5265L/29K).
1 | static Constructor findConstructor_precise_onTypes(Class c, Class... argTypes) ctex {
|
2 | L<Constructor> ctors = constructorsWithNumberOfArguments(c, l(argTypes); |
3 | new Lowest<Constructor> best; |
4 | if (ctors != null) for (Constructor ctor : ctors) {
|
5 | int score = methodApplicabilityScore_onTypes(ctor, argTypes); |
6 | if (score < Int.MAX_VALUE) |
7 | best.put(ctor, score); |
8 | } |
9 | ret best!; |
10 | } |
Began life as a copy of #1020934
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034310 |
| Snippet name: | findConstructor_precise_onTypes |
| Eternal ID of this version: | #1034310/4 |
| Text MD5: | 35c648647104d3572407abf89c530f9d |
| Transpilation MD5: | 2cbd2a285c62f3faa931b717ff71dbf5 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-02-01 20:20:48 |
| Source code size: | 402 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 388 / 501 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |