public class PersonCreditDateComparator extends Object implements Comparator<PersonCredit>, Serializable
| Constructor and Description |
|---|
PersonCreditDateComparator() |
PersonCreditDateComparator(boolean ascending) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(PersonCredit pc1,
PersonCredit pc2) |
int |
compare(PersonCredit pc1,
PersonCredit pc2,
boolean ascending)
Compare two PersonCredits based on the respective years
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic PersonCreditDateComparator()
public PersonCreditDateComparator(boolean ascending)
public int compare(PersonCredit pc1, PersonCredit pc2)
compare in interface Comparator<PersonCredit>public int compare(PersonCredit pc1, PersonCredit pc2, boolean ascending)
pc1 - pc2 - ascending - Copyright © 2012-2015. All Rights Reserved.