Package com.helger.commons.text
Class HasTextWithArgs
- java.lang.Object
-
- com.helger.commons.text.HasTextWithArgs
-
-
Constructor Summary
Constructors Constructor Description HasTextWithArgs(IHasText aParentText, Object... aArgs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]getAllArgs()Get all arguments from the constructor.IHasTextgetParentText()StringgetText(Locale aContentLocale)Get the text specific for the passed locale.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.commons.text.IHasText
getAsHasDisplayText
-
-
-
-
Method Detail
-
getAllArgs
@Nonnull @Nonempty @ReturnsMutableCopy public Object[] getAllArgs()
Get all arguments from the constructor.- Returns:
- a copy of all arguments. Neither
nullnor empty-
-
getText
@Nullable public String getText(@Nonnull Locale aContentLocale)
Description copied from interface:IHasTextGet the text specific for the passed locale. The implementation class MAY add locale-generalisation when resolving the text ("de_DE" => "de" => default).
-
-