Java Code Examples for com.helger.commons.compare.IComparator#getComparatorCollating()
The following examples show how to use
com.helger.commons.compare.IComparator#getComparatorCollating() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IHasDisplayText.java From ph-commons with Apache License 2.0 | 4 votes |
@Nonnull static Comparator <IHasDisplayText> getComparatorCollating (@Nonnull final Locale aContentLocale, @Nullable final Locale aSortLocale) { return IComparator.getComparatorCollating (x -> x.getDisplayText (aContentLocale), aSortLocale); }
Example 2
Source File: IDisplayTextProvider.java From ph-commons with Apache License 2.0 | 4 votes |
@Nonnull default Comparator <DATATYPE> getComparatorCollating (@Nonnull final Locale aContentLocale, @Nullable final Locale aSortLocale) { return IComparator.getComparatorCollating (x -> getDisplayText (x, aContentLocale), aSortLocale); }
Example 3
Source File: IHasText.java From ph-commons with Apache License 2.0 | 4 votes |
@Nonnull static Comparator <IHasText> getComparatorCollating (@Nonnull final Locale aContentLocale, @Nullable final Locale aSortLocale) { return IComparator.getComparatorCollating (x -> x.getText (aContentLocale), aSortLocale); }
Example 4
Source File: IHasDisplayName.java From ph-commons with Apache License 2.0 | 4 votes |
@Nonnull static Comparator <IHasDisplayName> getComparatorCollating (@Nullable final Locale aSortLocale) { return IComparator.getComparatorCollating (IHasDisplayName::getDisplayName, aSortLocale); }
Example 5
Source File: IDisplayNameProvider.java From ph-commons with Apache License 2.0 | 4 votes |
@Nonnull default Comparator <DATATYPE> getComparatorCollating (@Nullable final Locale aSortLocale) { return IComparator.getComparatorCollating (this::getDisplayName, aSortLocale); }
Example 6
Source File: IHasName.java From ph-commons with Apache License 2.0 | 4 votes |
@Nonnull static Comparator <IHasName> getComparatorCollating (@Nullable final Locale aSortLocale) { return IComparator.getComparatorCollating (IHasName::getName, aSortLocale); }