Package edu.pdx.cs410J.core
Class PersonComparator
java.lang.Object
edu.pdx.cs410J.core.PersonComparator
- All Implemented Interfaces:
Comparator<Person>
This class is a
Comparator
that compares
Person
s based on their shoe size.-
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
-
PersonComparator
public PersonComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Person>
-
main
Creates a set ofPerson
s and prints out the contents.
-