Package megamek.common
Class ECMComparator
java.lang.Object
megamek.common.ECMComparator
- All Implemented Interfaces:
Comparator<ECMInfo>
Compares two ECMInfo to determine which should take precedence, assuming that the goal is to find the strongest ECM
field.
-
Constructor Summary
Constructors -
Method Summary
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
-
ECMComparator
public ECMComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<ECMInfo>
-