DATATYPE - The data type to retrieve the display name from@FunctionalInterface public interface IDisplayNameProvider<DATATYPE>
| Modifier and Type | Method and Description |
|---|---|
static IDisplayNameProvider<IHasDisplayName> |
createHasDisplayName() |
default Comparator<DATATYPE> |
getComparatorCollating(Locale aSortLocale) |
String |
getDisplayName(DATATYPE aObject)
Get the name of the passed object.
|
@Nullable String getDisplayName(@Nullable DATATYPE aObject)
aObject - The object who's name is to be retrieved.null.@Nonnull default Comparator<DATATYPE> getComparatorCollating(@Nullable Locale aSortLocale)
@Nonnull static IDisplayNameProvider<IHasDisplayName> createHasDisplayName()
Copyright © 2014–2022 Philip Helger. All rights reserved.