org.optaplanner.core.api.score.constraint

## Class ConstraintMatchScoreComparator

- java.lang.Object
- - org.optaplanner.core.api.score.constraint.ConstraintMatchScoreComparator

- All Implemented Interfaces:
    Serializable, Comparator<ConstraintMatch>

      public class ConstraintMatchScoreComparator
      extends Object
      implements Comparator<ConstraintMatch>, Serializable

  Compares by `ConstraintMatch`s based on `ConstraintMatch.getScore()`.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConstraintMatchScoreComparator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(ConstraintMatch a, ConstraintMatch b)`

    - ### 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

      `comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- - ### Constructor Detail

    - #### ConstraintMatchScoreComparator

          public ConstraintMatchScoreComparator()

  - ### Method Detail

    - #### compare

          public int compare(ConstraintMatch a,
                             ConstraintMatch b)

      Specified by:
        `compare` in interface `Comparator<ConstraintMatch>`

Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.