Package com.helger.commons.text.display
Interface IDisplayTextProvider<DATATYPE>
- Type Parameters:
DATATYPE- The data type to retrieve the display text from
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface for a handler that provides the locale dependent name of an
object.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic IDisplayTextProvider<IHasDisplayText> default Comparator<DATATYPE> getComparatorCollating(Locale aContentLocale, Locale aSortLocale) getDisplayText(DATATYPE aObject, Locale aContentLocale) Get the display text of the passed object in the given locale.
-
Method Details
-
getDisplayText
Get the display text of the passed object in the given locale.- Parameters:
aObject- The object to be used. May benull.aContentLocale- The display locale to be used. May not benull.- Returns:
- The display text of the passed object in the given locale. May be
null.
-
getComparatorCollating
-
createHasDisplayText
-