Package jeco.core.operator.comparator
Class PropertyComparator<V extends Variable<?>>
java.lang.Object
jeco.core.operator.comparator.PropertyComparator<V>
- Type Parameters:
V
- Type of the variables of the solutions.
- All Implemented Interfaces:
Comparator<Solution<V>>
public class PropertyComparator<V extends Variable<?>>
extends Object
implements Comparator<Solution<V>>
Compares two solutions according to the value of one of their properties.
-
Field Summary
Fields -
Constructor Summary
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
-
Field Details
-
propertyName
-
-
Constructor Details
-
PropertyComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<V extends Variable<?>>
-