public class ComparatorHasErrorID<DATATYPE extends IHasErrorID> extends AbstractCollationComparator<DATATYPE>
| Constructor and Description |
|---|
ComparatorHasErrorID()
Comparator with default locale
Collator and default sort order. |
ComparatorHasErrorID(Collator aCollator)
Constructor with
Collator using the default sort order |
ComparatorHasErrorID(Collator aCollator,
Comparator<? super DATATYPE> aNestedComparator)
Constructor with
Collator using the default sort order and a nested
comparator. |
ComparatorHasErrorID(Collator aCollator,
ESortOrder eSortOrder)
Constructor with
Collator and sort order. |
ComparatorHasErrorID(Collator aCollator,
ESortOrder eSortOrder,
Comparator<? super DATATYPE> aNestedComparator)
Constructor with
Collator and sort order and a nested comparator. |
ComparatorHasErrorID(Comparator<? super DATATYPE> aNestedComparator)
Comparator with default locale
Collator and default sort order and
a nested comparator. |
ComparatorHasErrorID(ESortOrder eSortOrder)
Comparator with default locale
Collator. |
ComparatorHasErrorID(ESortOrder eSortOrder,
Comparator<? super DATATYPE> aNestedComparator)
Comparator with default locale
Collator and a nested comparator. |
ComparatorHasErrorID(Locale aSortLocale)
Comparator with default sort order and specified sort locale.
|
ComparatorHasErrorID(Locale aSortLocale,
Comparator<? super DATATYPE> aNestedComparator)
Comparator with default sort order but special locale and a nested
comparator.
|
ComparatorHasErrorID(Locale aSortLocale,
ESortOrder eSortOrder)
Constructor with locale and sort order.
|
ComparatorHasErrorID(Locale aSortLocale,
ESortOrder eSortOrder,
Comparator<? super DATATYPE> aNestedComparator)
Constructor with locale and sort order and a nested comparator.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
asString(DATATYPE aObject)
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 ComparatorHasErrorID()
Collator and default sort order.public ComparatorHasErrorID(@Nullable Comparator<? super DATATYPE> 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 ComparatorHasErrorID(@Nonnull ESortOrder eSortOrder)
Collator.eSortOrder - The sort order to use. May not be null.public ComparatorHasErrorID(@Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super DATATYPE> 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 ComparatorHasErrorID(@Nullable Locale aSortLocale)
aSortLocale - The locale to use. May be null.public ComparatorHasErrorID(@Nullable Locale aSortLocale, @Nullable Comparator<? super DATATYPE> aNestedComparator)
aSortLocale - The locale to use. May be null.aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.public ComparatorHasErrorID(@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 ComparatorHasErrorID(@Nullable Locale aSortLocale, @Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super DATATYPE> 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 ComparatorHasErrorID(@Nonnull Collator aCollator)
Collator using the default sort orderaCollator - The Collator to use. May not be null.public ComparatorHasErrorID(@Nonnull Collator aCollator, @Nullable Comparator<? super DATATYPE> 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 ComparatorHasErrorID(@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 ComparatorHasErrorID(@Nonnull Collator aCollator, @Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super DATATYPE> 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.@Nullable protected String asString(@Nonnull DATATYPE aObject)
AbstractCollationComparatorasString in class AbstractCollationComparator<DATATYPE extends IHasErrorID>aObject - 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.