Class PrisonerStatusSorter

java.lang.Object
mekhq.gui.sorter.PrisonerStatusSorter
All Implemented Interfaces:
Comparator<PrisonerStatus>

public class PrisonerStatusSorter extends Object implements Comparator<PrisonerStatus>
  • Constructor Details

    • PrisonerStatusSorter

      public PrisonerStatusSorter()
  • Method Details

    • compare

      public int compare(PrisonerStatus o1, PrisonerStatus o2)
      Order: 1) Free 2) Prisoners willing to Defect 3) Prisoners not willing to Defect 4) Bondsmen
      Specified by:
      compare in interface Comparator<PrisonerStatus>
      Parameters:
      o1 - the first PrisonerStatus
      o2 - the second PrisonerStatus
      Returns:
      the sort order