Package org.moeaframework.core
Class Defined.ConstructorComparator
java.lang.Object
org.moeaframework.core.Defined.ConstructorComparator
- All Implemented Interfaces:
Comparator<Constructor<?>>
- Enclosing interface:
- Defined
public static class Defined.ConstructorComparator
extends Object
implements Comparator<Constructor<?>>
Comparator that sorts constructors based on the number of parameters and the types of each parameter.
-
Constructor Summary
ConstructorDescriptionConstructs a new comparator for sorting constructors. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ConstructorComparator
public ConstructorComparator()Constructs a new comparator for sorting constructors.
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Constructor<?>>
-