public class PersonComparator extends Object implements Comparator<org.eclipse.jgit.lib.PersonIdent>, Serializable
PersonIdent comparator that compares the name and email address.
This class compares PersonIdent.getName() values first and if they
are identical then it will compare the PersonIdent.getEmailAddress()
values next.
| Modifier and Type | Field and Description |
|---|---|
static PersonComparator |
INSTANCE
Instance
|
| Constructor and Description |
|---|
PersonComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(org.eclipse.jgit.lib.PersonIdent p1,
org.eclipse.jgit.lib.PersonIdent p2) |
boolean |
equals(org.eclipse.jgit.lib.PersonIdent p1,
org.eclipse.jgit.lib.PersonIdent p2)
Check if the two given
PersonIdent objects are equal according to
the semantics of compare(PersonIdent, PersonIdent). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic static final PersonComparator INSTANCE
public boolean equals(org.eclipse.jgit.lib.PersonIdent p1,
org.eclipse.jgit.lib.PersonIdent p2)
PersonIdent objects are equal according to
the semantics of compare(PersonIdent, PersonIdent).p1 - p2 - public int compare(org.eclipse.jgit.lib.PersonIdent p1,
org.eclipse.jgit.lib.PersonIdent p2)
compare in interface Comparator<org.eclipse.jgit.lib.PersonIdent>Copyright © 2011-2016. All Rights Reserved.