|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectaddressbook.Person.CompareByName
public static class Person.CompareByName
Comparator for comparing two persons by alphabetical order of name
| Constructor Summary | |
|---|---|
Person.CompareByName()
|
|
| Method Summary | |
|---|---|
int |
compare(Person person1,
Person person2)
Compare two Persons 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.CompareByName()
| 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 | |||||||