Package edu.pdx.cs410J.core
Class CerealComparator
java.lang.Object
edu.pdx.cs410J.core.CerealComparator
- All Implemented Interfaces:
Comparator<Cereal>
Compares two boxes of ceral by their price
-
Constructor Summary
-
Method Summary
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
-
Constructor Details
-
CerealComparator
public CerealComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Cereal>
-
main
-