Package edu.princeton.cs.algs4
Class Transaction.WhenOrder
- Object
-
- edu.princeton.cs.algs4.Transaction.WhenOrder
-
- All Implemented Interfaces:
Comparator<Transaction>
- Enclosing class:
- Transaction
public static class Transaction.WhenOrder extends Object implements Comparator<Transaction>
Compares two transactions by date.
-
-
Constructor Summary
Constructors Constructor Description WhenOrder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Transaction v, Transaction w)
-
Methods inherited from class java.lang.Object
clone, equals, 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(Transaction v, Transaction w)
- Specified by:
compare
in interfaceComparator<Transaction>
-
-