@NotThreadSafe public class CollatingComparatorLocaleDisplayCountryNative extends AbstractCollatingComparator<Locale>
Comparator that sorts Locale objects by their
country display name in its own locale.| Constructor and Description |
|---|
CollatingComparatorLocaleDisplayCountryNative(Locale aSortLocale) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getPart(Locale aLocale)
Implement this method to extract the part to compare from the original
object.
|
getCollatorgetPartComparator, mainCompare, toStringcompare, getNestedComparator, getSortOrder, isNullValuesComeFirst, setNestedComparator, setNullValuesComeFirst, setSortOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected String getPart(@Nonnull Locale aLocale)
AbstractPartComparatorgetPart in class AbstractPartComparator<Locale,String>aLocale - The object to be compared. Never null.null.Copyright © 2014–2015 Philip Helger. All rights reserved.