Package edu.princeton.cs.algs4
Class Transaction.HowMuchOrder
- Object
-
- edu.princeton.cs.algs4.Transaction.HowMuchOrder
-
- All Implemented Interfaces:
Comparator<Transaction>
- Enclosing class:
- Transaction
public static class Transaction.HowMuchOrder extends Object implements Comparator<Transaction>
Compares two transactions by amount.
-
-
Constructor Summary
Constructors Constructor Description HowMuchOrder()
-
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>
-
-