org.cpsolver.studentsct.online.selection

## Class SuggestionsBranchAndBound.SectionAssignmentComparator

- java.lang.Object
- - org.cpsolver.studentsct.online.selection.SuggestionsBranchAndBound.SectionAssignmentComparator

- All Implemented Interfaces:
    Comparator<Section>
  Enclosing class:
    SuggestionsBranchAndBound

      public class SuggestionsBranchAndBound.SectionAssignmentComparator
      extends Object
      implements Comparator<Section>

  Section comparator. Order section by time first, then by room.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SectionAssignmentComparator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(Section a, Section b)`

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

    - #### SectionAssignmentComparator

          public SectionAssignmentComparator()

  - ### Method Detail

    - #### compare

          public int compare(Section a,
                             Section b)

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