org.optaplanner.core.api.score.comparator

## Class NaturalScoreComparator

- java.lang.Object
- - org.optaplanner.core.api.score.comparator.NaturalScoreComparator

- All Implemented Interfaces:
    Serializable, Comparator<Score>

  Deprecated.
  If you need this, it is trivial to implement via `Comparator.comparing(Function)`.

      @Deprecated
      public class NaturalScoreComparator
      extends Object
      implements Comparator<Score>, Serializable

  Compares by the natural order of `Score`s.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NaturalScoreComparator()` Deprecated.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(Score score1, Score score2)` 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

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

- - ### Constructor Detail

    - #### NaturalScoreComparator

          public NaturalScoreComparator()

      Deprecated.

  - ### Method Detail

    - #### compare

          public int compare(Score score1,
                             Score score2)

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

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