org.cpsolver.studentsct.heuristics.selection

## Class BacktrackSelection.RequestComparator

- java.lang.Object
- - org.cpsolver.studentsct.heuristics.selection.BacktrackSelection.RequestComparator

- All Implemented Interfaces:
    Comparator<Request>
  Enclosing class:
    BacktrackSelection

      public static class BacktrackSelection.RequestComparator
      extends Object
      implements Comparator<Request>

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected boolean` | `iPreferPriorityStudents`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `RequestComparator(DataProperties properties)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(Request r1, Request r2)`

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

- - ### Field Detail

    - #### iPreferPriorityStudents

          protected boolean iPreferPriorityStudents

  - ### Constructor Detail

    - #### RequestComparator

          protected RequestComparator(DataProperties properties)

  - ### Method Detail

    - #### compare

          public int compare(Request r1,
                             Request r2)

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