org.cpsolver.coursett.constraint

## Class FlexibleConstraint.PlacementTimeComparator

- java.lang.Object
- - org.cpsolver.coursett.constraint.FlexibleConstraint.PlacementTimeComparator

- All Implemented Interfaces:
    Comparator<Placement>
  Enclosing class:
    FlexibleConstraint

      protected static class FlexibleConstraint.PlacementTimeComparator
      extends Object
      implements Comparator<Placement>

  Placement comparator: earlier placement first, shorter placement first if both start at the same time.

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `PlacementTimeComparator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(Placement p1, Placement p2)`

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

    - #### PlacementTimeComparator

          protected PlacementTimeComparator()

  - ### Method Detail

    - #### compare

          public int compare(Placement p1,
                             Placement p2)

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