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

## Class ConstraintMatchTotalScoreComparator

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

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

      @Deprecated
      public class ConstraintMatchTotalScoreComparator
      extends Object
      implements Comparator<ConstraintMatchTotal>, Serializable

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

- - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `compare​(ConstraintMatchTotal a, ConstraintMatchTotal 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

    - #### ConstraintMatchTotalScoreComparator

          public ConstraintMatchTotalScoreComparator()

      Deprecated.

  - ### Method Detail

    - #### compare

          public int compare​(ConstraintMatchTotal a,
                             ConstraintMatchTotal b)

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