Libraryless. Click here for Pure Java version (7753L/44K).
1 | static Method mostApplicableMethod_onTypes(Iterable<Method> methods, Class... argTypes) { |
2 | new Lowest<Method> best; |
3 | if (methods != null) for (Method m : methods) { |
4 | int score = methodApplicabilityScore_onTypes(m, argTypes); |
5 | print ifdef mostApplicableMethod_onTypes_debug("Method score: " + m + " " + score); |
6 | if (score < Int.MAX_VALUE) |
7 | best.put(m, score); |
8 | } |
9 | ret best!; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035156 |
Snippet name: | mostApplicableMethod_onTypes |
Eternal ID of this version: | #1035156/1 |
Text MD5: | 125d612bc0c24dfaececa842f38ac738 |
Transpilation MD5: | 6056bc0de137315295ae4592d70fe4d9 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-02 18:13:57 |
Source code size: | 402 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 122 / 171 |
Referenced in: | [show references] |