Package megameklab.util
Class MekUtil.MekCritSlotSorter
java.lang.Object
megameklab.util.MekUtil.MekCritSlotSorter
- All Implemented Interfaces:
Comparator<megamek.common.CriticalSlot>
- Enclosing class:
- MekUtil
public static class MekUtil.MekCritSlotSorter
extends Object
implements Comparator<megamek.common.CriticalSlot>
A location CriticalSlot sorter using the official sort order (mostly)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(megamek.common.CriticalSlot critA, megamek.common.CriticalSlot critB) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
MekCritSlotSorter
public MekCritSlotSorter(megamek.common.units.Mek mek)
-
-
Method Details
-
compare
public int compare(megamek.common.CriticalSlot critA, megamek.common.CriticalSlot critB) - Specified by:
comparein interfaceComparator<megamek.common.CriticalSlot>
-