|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object addressbook.Person.CompareByZip
public static class Person.CompareByZip
Comparator for comparing two persons by order of zip code, with ties broken by name
Constructor Summary | |
---|---|
Person.CompareByZip()
|
Method Summary | |
---|---|
int |
compare(Person person1,
Person person2)
Compare two Persons by zip, with ties broken by name |
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 |
Constructor Detail |
---|
public Person.CompareByZip()
Method Detail |
---|
public int compare(Person person1, Person person2)
compare
in interface java.util.Comparator<Person>
person1
- the first personperson2
- the second person
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |