public final class ComparatorLocaleDisplayName extends AbstractCollationComparator<Locale>
Comparator that sorts Locale objects by their
display name in the system locale.| Constructor and Description |
|---|
ComparatorLocaleDisplayName(Locale aSortLocale) |
| 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.
|
getCollator, mainCompare, toStringcompare, getNestedComparator, getSortOrder, setSortOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalsprotected String asString(@Nonnull 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.