Package io.cucumber.messages
Class TimestampComparator
- java.lang.Object
-
- io.cucumber.messages.TimestampComparator
-
- All Implemented Interfaces:
Comparator<Timestamp>
public final class TimestampComparator extends Object implements Comparator<Timestamp>
Orders timestamps by their natural order.
-
-
Constructor Summary
Constructors Constructor Description TimestampComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Timestamp a, Timestamp 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(Timestamp a, Timestamp b)
- Specified by:
comparein interfaceComparator<Timestamp>
-
-