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
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
CerealComparator
public CerealComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Cereal>
-
main
-