public class ComparatorString extends AbstractCollationComparator<String>
| Constructor and Description |
|---|
ComparatorString()
Comparator with default locale
Collator and default sort order. |
ComparatorString(Collator aCollator)
Constructor with
Collator using the default sort order |
ComparatorString(Collator aCollator,
Comparator<? super String> aNestedComparator)
Constructor with
Collator using the default sort order and a nested
comparator. |
ComparatorString(Collator aCollator,
ESortOrder eSortOrder)
Constructor with
Collator and sort order. |
ComparatorString(Collator aCollator,
ESortOrder eSortOrder,
Comparator<? super String> aNestedComparator)
Constructor with
Collator and sort order and a nested comparator. |
ComparatorString(Comparator<? super String> aNestedComparator)
Comparator with default locale
Collator and default sort order and
a nested comparator. |
ComparatorString(ESortOrder eSortOrder)
Comparator with default locale
Collator. |
ComparatorString(ESortOrder eSortOrder,
Comparator<? super String> aNestedComparator)
Comparator with default locale
Collator and a nested comparator. |
ComparatorString(Locale aSortLocale)
Comparator with default sort order and specified sort locale.
|
ComparatorString(Locale aSortLocale,
Comparator<? super String> aNestedComparator)
Comparator with default sort order but special locale and a nested
comparator.
|
ComparatorString(Locale aSortLocale,
ESortOrder eSortOrder)
Constructor with locale and sort order.
|
ComparatorString(Locale aSortLocale,
ESortOrder eSortOrder,
Comparator<? super String> aNestedComparator)
Constructor with locale and sort order and a nested comparator.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
asString(String sValue)
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 ComparatorString()
Collator and default sort order.public ComparatorString(@Nullable Comparator<? super String> 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 ComparatorString(@Nonnull ESortOrder eSortOrder)
Collator.eSortOrder - The sort order to use. May not be null.public ComparatorString(@Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super String> 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 ComparatorString(@Nullable Locale aSortLocale)
aSortLocale - The locale to use. May be null.public ComparatorString(@Nullable Locale aSortLocale, @Nullable Comparator<? super String> aNestedComparator)
aSortLocale - The locale to use. May be null.aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.public ComparatorString(@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 ComparatorString(@Nullable Locale aSortLocale, @Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super String> 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 ComparatorString(@Nonnull Collator aCollator)
Collator using the default sort orderaCollator - The Collator to use. May not be null.public ComparatorString(@Nonnull Collator aCollator, @Nullable Comparator<? super String> 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 ComparatorString(@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 ComparatorString(@Nonnull Collator aCollator, @Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super String> 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 String sValue)
AbstractCollationComparatorasString in class AbstractCollationComparator<String>sValue - The object to be converted. May not be null depending
on the elements to be sorted.null.Copyright © 2006–2015 phloc systems. All rights reserved.