megamek.common
Class MovePath.MovePathComparator

java.lang.Object
  extended by megamek.common.MovePath.MovePathComparator
All Implemented Interfaces:
java.util.Comparator<MovePath>
Enclosing class:
MovePath

protected static class MovePath.MovePathComparator
extends java.lang.Object
implements java.util.Comparator<MovePath>


Field Summary
(package private)  boolean backward
           
 
Constructor Summary
MovePath.MovePathComparator(Coords destination, boolean backward)
           
 
Method Summary
 int compare(MovePath first, MovePath second)
           
 
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
equals
 

Field Detail

backward

boolean backward
Constructor Detail

MovePath.MovePathComparator

public MovePath.MovePathComparator(Coords destination,
                                   boolean backward)
Method Detail

compare

public int compare(MovePath first,
                   MovePath second)
Specified by:
compare in interface java.util.Comparator<MovePath>