private boolean isSimilarSignature ( Method possiblyMatchingMethod , String desiredMethodName , Class < ? > [ ] desiredParamTypes ) { return possiblyMatchingMethod . getName ( ) . equals ( desiredMethodName ) && match ( possiblyMatchingMethod . getParameterTypes ( ) , desiredParamTypes ) ; }
Determines if a method has a similar signature especially if wrapping primitive argument types would result in an exactly matching signature .