DATATYPE - The data type to retrieve the display text from@FunctionalInterface public interface IDisplayTextProvider<DATATYPE>
| Modifier and Type | Method and Description |
|---|---|
static IDisplayTextProvider<IHasDisplayText> |
createHasDisplayText() |
default Comparator<DATATYPE> |
getComparatorCollating(Locale aContentLocale,
Locale aSortLocale) |
String |
getDisplayText(DATATYPE aObject,
Locale aContentLocale)
Get the display text of the passed object in the given locale.
|
@Nullable String getDisplayText(@Nullable DATATYPE aObject, @Nonnull Locale aContentLocale)
aObject - The object to be used. May be null.aContentLocale - The display locale to be used. May not be null.null.@Nonnull default Comparator<DATATYPE> getComparatorCollating(@Nonnull Locale aContentLocale, @Nullable Locale aSortLocale)
@Nonnull static IDisplayTextProvider<IHasDisplayText> createHasDisplayText()
Copyright © 2014–2020 Philip Helger. All rights reserved.