public class PersonCaseInsensitiveNameComparator extends Object implements Comparator<Person>
Person
comparator comparing name case insensitively.Constructor and Description |
---|
PersonCaseInsensitiveNameComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Person p1,
Person p2) |
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 p1, Person p2)
compare
in interface Comparator<Person>
Copyright © 2008–2016. All rights reserved.