public class PersonFamilyNameComparator extends Object implements Comparator<Person>
Constructor and Description |
---|
PersonFamilyNameComparator() |
public int compare(Person person1, Person person2) throws ClassCastException, NullPointerException
compare
in interface Comparator<Person>
o1
- o2
- ClassCastException
NullPointerException
public boolean equals(Object obj)
equals
in interface Comparator<Person>
equals
in class Object
obj
- ClassCastException
Copyright © 2016. All Rights Reserved.