Package org.optaplanner.core.api.score.constraint

## Class ConstraintMatchScoreComparator

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

- All Implemented Interfaces:
    `Serializable`, `Comparator<ConstraintMatch>`

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

  Deprecated.
  If you need this, it is trivial to implement via `Comparator.comparing(Function)`.
  Compares by `ConstraintMatch`s based on `ConstraintMatch.getScore()`.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ConstraintMatchScoreComparator()` | Deprecated.

  - ### Method Summary

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

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

    - #### ConstraintMatchScoreComparator

          public ConstraintMatchScoreComparator()

      Deprecated.

  - ### Method Detail

    - #### compare

          public int compare​(ConstraintMatch a,
                             ConstraintMatch b)

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