Package mekhq.gui.sorter
Class PrisonerStatusSorter
java.lang.Object
mekhq.gui.sorter.PrisonerStatusSorter
- All Implemented Interfaces:
Comparator<PrisonerStatus>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(PrisonerStatus o1, PrisonerStatus o2) Order: 1) Free 2) Prisoners willing to Defect 3) Prisoners not willing to Defect 4) BondsmenMethods 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
PrisonerStatusSorter
public PrisonerStatusSorter()
-
-
Method Details
-
compare
Order: 1) Free 2) Prisoners willing to Defect 3) Prisoners not willing to Defect 4) Bondsmen- Specified by:
compare
in interfaceComparator<PrisonerStatus>
- Parameters:
o1
- the first PrisonerStatuso2
- the second PrisonerStatus- Returns:
- the sort order
-