public class ComparatorAsString extends AbstractCollationComparator<Object>
| Constructor and Description |
|---|
ComparatorAsString()
Comparator with default locale
Collator and default sort order. |
ComparatorAsString(Collator aCollator)
Constructor with
Collator using the default sort order |
ComparatorAsString(Collator aCollator,
Comparator<? super Object> aNestedComparator)
Constructor with
Collator using the default sort order and a nested
comparator. |
ComparatorAsString(Collator aCollator,
ESortOrder eSortOrder)
Constructor with
Collator and sort order. |
ComparatorAsString(Collator aCollator,
ESortOrder eSortOrder,
Comparator<? super Object> aNestedComparator)
Constructor with
Collator and sort order and a nested comparator. |
ComparatorAsString(Comparator<? super Object> aNestedComparator)
Comparator with default locale
Collator and default sort order and
a nested comparator. |
ComparatorAsString(ESortOrder eSortOrder)
Comparator with default locale
Collator. |
ComparatorAsString(ESortOrder eSortOrder,
Comparator<? super Object> aNestedComparator)
Comparator with default locale
Collator and a nested comparator. |
ComparatorAsString(Locale aSortLocale)
Comparator with default sort order and specified sort locale.
|
ComparatorAsString(Locale aSortLocale,
Comparator<? super Object> aNestedComparator)
Comparator with default sort order but special locale and a nested
comparator.
|
ComparatorAsString(Locale aSortLocale,
ESortOrder eSortOrder)
Constructor with locale and sort order.
|
ComparatorAsString(Locale aSortLocale,
ESortOrder eSortOrder,
Comparator<? super Object> aNestedComparator)
Constructor with locale and sort order and a nested comparator.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
asString(Object aValue)
Abstract method that needs to be overridden to convert an object to a
string representation for comparison.
|
mainCompare, toStringcompare, getSortOrder, setSortOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic ComparatorAsString()
Collator and default sort order.public ComparatorAsString(@Nullable Comparator<? super Object> aNestedComparator)
Collator and default sort order and
a nested comparator.aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.public ComparatorAsString(@Nonnull ESortOrder eSortOrder)
Collator.eSortOrder - The sort order to use. May not be null.public ComparatorAsString(@Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super Object> aNestedComparator)
Collator and a nested comparator.eSortOrder - The sort order to use. May not be null.aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.public ComparatorAsString(@Nullable Locale aSortLocale)
aSortLocale - The locale to use. May be null.public ComparatorAsString(@Nullable Locale aSortLocale, @Nullable Comparator<? super Object> aNestedComparator)
aSortLocale - The locale to use. May be null.aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.public ComparatorAsString(@Nullable Locale aSortLocale, @Nonnull ESortOrder eSortOrder)
aSortLocale - The locale to use. May be null.eSortOrder - The sort order to use. May not be null.public ComparatorAsString(@Nullable Locale aSortLocale, @Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super Object> aNestedComparator)
aSortLocale - The locale to use. May be null.eSortOrder - The sort order to use. May not be null.aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.public ComparatorAsString(@Nonnull Collator aCollator)
Collator using the default sort orderaCollator - The Collator to use. May not be null.public ComparatorAsString(@Nonnull Collator aCollator, @Nullable Comparator<? super Object> aNestedComparator)
Collator using the default sort order and a nested
comparator.aCollator - The Collator to use. May not be null.aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.public ComparatorAsString(@Nonnull Collator aCollator, @Nonnull ESortOrder eSortOrder)
Collator and sort order.aCollator - The Collator to use. May not be null.eSortOrder - The sort order to use. May not be null.public ComparatorAsString(@Nonnull Collator aCollator, @Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super Object> aNestedComparator)
Collator and sort order and a nested comparator.aCollator - The Collator to use. May not be null.eSortOrder - The sort order to use. May not be null.aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.protected String asString(@Nullable Object aValue)
AbstractCollationComparatorasString in class AbstractCollationComparator<Object>aValue - The object to be converted. May not be null depending
on the elements to be sorted.null.Copyright © 2006–2014 phloc systems. All rights reserved.