Package io.cucumber.messages
Class LocationComparator
- java.lang.Object
-
- io.cucumber.messages.LocationComparator
-
- All Implemented Interfaces:
Comparator<Location>
public final class LocationComparator extends Object implements Comparator<Location>
Orders locations by their natural order.Locations on the same line, but with a missing column come before locations with a column.
-
-
Constructor Summary
Constructors Constructor Description LocationComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Location a, Location b)-
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(Location a, Location b)
- Specified by:
comparein interfaceComparator<Location>
-
-