类 MethodComparator
- java.lang.Object
-
- org.apache.dubbo.common.utils.MethodComparator
-
- 所有已实现的接口:
Comparator<Method>
public class MethodComparator extends Object implements Comparator<Method>
The Comparator class forMethod, 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
- 从以下版本开始:
- 2.7.6
-
-
字段概要
字段 修饰符和类型 字段 说明 static MethodComparatorINSTANCE
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intcompare(Method m1, Method m2)-
从接口继承的方法 java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
字段详细资料
-
INSTANCE
public static final MethodComparator INSTANCE
-
-
方法详细资料
-
compare
public int compare(Method m1, Method m2)
- 指定者:
compare在接口中Comparator<Method>
-
-