net.sourceforge.cilib.entity.comparator
Class NaturalOrderFitnessComparator<E extends Entity>
java.lang.Object
net.sourceforge.cilib.entity.comparator.NaturalOrderFitnessComparator<E>
- Type Parameters:
E
- The Entity
type.
- All Implemented Interfaces:
- Comparator<E>
public class NaturalOrderFitnessComparator<E extends Entity>
- extends Object
- implements Comparator<E>
Perform a comparison based on the natural ordering of fitnesses.
- Author:
- gpampara
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NaturalOrderFitnessComparator
public NaturalOrderFitnessComparator()
compare
public int compare(E o1,
E o2)
-
- Specified by:
compare
in interface Comparator<E extends Entity>
Copyright © 2009 CIRG. All Rights Reserved.