Package org.apache.dubbo.common.utils
Class MethodComparator
java.lang.Object
org.apache.dubbo.common.utils.MethodComparator
- All Implemented Interfaces:
Comparator<Method>
The Comparator class for
Method, the comparison rule :
- Comparing to two
method nameslexicographically. If equals, go to step 2 - Comparing to the count of two method parameters. If equals, go to step 3
- Comparing to the type names of methods parameter
lexicographically
- Since:
- 2.7.6
-
Field Summary
Fields -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
INSTANCE
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Method>
-