public final 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[] |
getArgs() |
String |
getDisplayText(Locale aContentLocale) |
IHasDisplayText |
getParentText() |
String |
toString() |
public HasDisplayTextWithArgs(@Nonnull IHasDisplayText aParentText, @Nonnull @Nonempty Object... aArgs)
@Nonnull public IHasDisplayText getParentText()
@Nonnull @ReturnsMutableCopy public Object[] getArgs()
@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–2016 Philip Helger. All rights reserved.