Package org.plumelib.util
Class ClassDeterministic.MethodComparator
java.lang.Object
org.plumelib.util.ClassDeterministic.MethodComparator
- All Implemented Interfaces:
Comparator<Method>
- Enclosing class:
- ClassDeterministic
private static class ClassDeterministic.MethodComparator
extends Object
implements Comparator<Method>
Compares Method objects by signature: compares name, number of parameters, parameter type
names, declaring class, and return type (which is necessary to distinguish bridge methods).
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
MethodComparator
public MethodComparator()Create a new MethodComparator.
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Method>
-