@Immutable public class HasDisplayTextWithArgs extends Object implements IHasDisplayText
IHasDisplayText that encapsulates
arguments to be put into the message.| Constructor and Description |
|---|
HasDisplayTextWithArgs(IHasDisplayText aParentText,
Object... aArgs) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getAllArgs()
Get all arguments from the constructor.
|
String |
getDisplayText(Locale aContentLocale) |
IHasDisplayText |
getParentText() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsHasText, getComparatorCollatingpublic HasDisplayTextWithArgs(@Nonnull IHasDisplayText aParentText, @Nonnull @Nonempty Object... aArgs)
@Nonnull public IHasDisplayText getParentText()
@Nonnull @Nonempty @ReturnsMutableCopy public Object[] getAllArgs()
null nor empty-@Nullable public String getDisplayText(@Nonnull Locale aContentLocale)
getDisplayText in interface IHasDisplayTextaContentLocale - The locale to be used for resolving. May not be null.null if the text could not be resolved in the passed
locale.Copyright © 2014–2017 Philip Helger. All rights reserved.