Package com.helger.commons.text.display
Class HasDisplayTextWithArgs
java.lang.Object
com.helger.commons.text.display.HasDisplayTextWithArgs
- All Implemented Interfaces:
IHasDisplayText
A special implementation of
IHasDisplayText that encapsulates
arguments to be put into the message.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]Get all arguments from the constructor.getDisplayText(Locale aContentLocale) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.text.display.IHasDisplayText
getAsHasText
-
Constructor Details
-
HasDisplayTextWithArgs
public HasDisplayTextWithArgs(@Nonnull IHasDisplayText aParentText, @Nonnull @Nonempty Object... aArgs)
-
-
Method Details
-
getParentText
-
getAllArgs
Get all arguments from the constructor.- Returns:
- a copy of all arguments. Neither
nullnor empty-
-
getDisplayText
- Specified by:
getDisplayTextin interfaceIHasDisplayText- 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.
-
toString
-