Package org.opt4j.operator
Class AbstractGenericOperator.ClassComparator
java.lang.Object
org.opt4j.operator.AbstractGenericOperator.ClassComparator
- All Implemented Interfaces:
Comparator<Class<? extends Genotype>>
- Enclosing class:
- AbstractGenericOperator<O extends Operator<?>,
Q extends Operator<?>>
protected static class AbstractGenericOperator.ClassComparator
extends Object
implements Comparator<Class<? extends Genotype>>
Comparator for a specific order: Superclasses always are sorted after
subclasses.
-
Constructor Summary
-
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
-
ClassComparator
protected ClassComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Class<? extends Genotype>>
-