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

10
LINES

< > BotCompany Repo | #1035156 // mostApplicableMethod_onTypes

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

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: 121 / 169
Referenced in: [show references]