public class PersonByNameComparator extends Object implements Comparator<Person>
Constructor and Description |
---|
PersonByNameComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Person person1,
Person person2) |
static int |
comparePersonsByName(Person person1,
Person person2)
Compares two person objects by name
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Person person1, Person person2)
compare
in interface Comparator<Person>
Comparator.compare(java.lang.Object, java.lang.Object)
public static int comparePersonsByName(Person person1, Person person2)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.