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 Details

    • propertyName

      protected String propertyName
  • Constructor Details

    • PropertyComparator

      public PropertyComparator(String propertyName)
  • Method Details