Package com.helger.commons.text.display
Interface IHasDisplayTextWithArgs
- All Superinterfaces:
IHasDisplayText
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Base interface for objects that have a locale dependent display name.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault IHasTextWithArgsdefault StringgetDisplayTextWithArgs(Locale aContentLocale) Deprecated.default StringgetDisplayTextWithArgs(Locale aContentLocale, Object... aArgs) Methods inherited from interface com.helger.commons.text.display.IHasDisplayText
getAsHasText, getDisplayText
-
Method Details
-
getDisplayTextWithArgs
@Nullable @Deprecated(forRemoval=false) @DevelopersNote("Use getDisplayText (Locale) instead") default String getDisplayTextWithArgs(@Nonnull Locale aContentLocale) Deprecated.Don't call this; UseIHasDisplayText.getDisplayText(Locale)if no parameters are present- Parameters:
aContentLocale- The locale to be used for resolving. May not benull.- Returns:
- The display text of the object in the given locale. May be
nullif the text could not be resolved in the passed locale.
-
getDisplayTextWithArgs
@Nullable default String getDisplayTextWithArgs(@Nonnull Locale aContentLocale, @Nullable Object... aArgs) - Parameters:
aContentLocale- The locale to be used for resolving. May not benull.aArgs- Arguments for formatting the provided text. May benullbut this makes no sense.- Returns:
- The display text of the object in the given locale. May be
nullif the text could not be resolved in the passed locale.
-
getAsHasTextWithArgs
- Returns:
- this as an instance of
IHasTextWithArgs. - Since:
- 8.5.2
-
IHasDisplayText.getDisplayText(Locale)if no parameters are present