Libraryless. Click here for Pure Java version (7753L/44K).
static Method mostApplicableMethod_onTypes(Iterable<Method> methods, Class... argTypes) { new Lowest<Method> best; if (methods != null) for (Method m : methods) { int score = methodApplicabilityScore_onTypes(m, argTypes); print ifdef mostApplicableMethod_onTypes_debug("Method score: " + m + " " + score); if (score < Int.MAX_VALUE) best.put(m, score); } ret best!; }
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: | 123 / 171 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |