public final class ComparatorLocaleDisplayNameInLocale extends AbstractCollationComparator<Locale>
Comparator that sorts Locale objects by their
display name in a given locale.| Constructor and Description |
|---|
ComparatorLocaleDisplayNameInLocale(Locale aSortLocale,
Locale aContentLocale) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
asString(Locale aLocale)
Abstract method that needs to be overridden to convert an object to a
string representation for comparison.
|
Locale |
getContentLocale() |
getCollator, mainCompare, toStringcompare, getNestedComparator, getSortOrder, 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 asString(@Nullable Locale aLocale)
AbstractCollationComparatorasString in class AbstractCollationComparator<Locale>aLocale - The object to be converted. May not be null depending
on the elements to be sorted.null.Copyright © 2014–2015 Philip Helger. All rights reserved.