Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.0.0.CR1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.optaplanner.core.api.score.comparator
Class NaturalScoreComparator

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

All Implemented Interfaces:
  Serializable, Comparator<Score>

    public class NaturalScoreComparator

extends Object
implements Comparator<Score>, Serializable

Compares by the natural order of scores.

See Also:
  Serialized Form

Constructor Summary
`NaturalScoreComparator()`

Method Summary
`int` | `compare(Score score1, Score score2)`

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`

Constructor Detail

### NaturalScoreComparator

    public NaturalScoreComparator()

Method Detail

### compare

    public int compare(Score score1,
                       Score score2)

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.0.0.CR1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.