public class FormatString extends Object implements org.kohsuke.args4j.Localizable
| Constructor and Description |
|---|
FormatString(String format)
Create a format-string with the given format.
|
FormatString(String format,
Locale locale)
Make a format-string with given format for given locale.
|
| Modifier and Type | Method and Description |
|---|---|
static org.kohsuke.args4j.CmdLineException |
except(org.kohsuke.args4j.CmdLineParser cli,
String format,
String... args)
Convenience method to make an exception that matches the given
arguments without translations.
|
String |
format(Object... args) |
String |
formatWithLocale(Locale locale,
Object... args) |
public FormatString(String format)
format - The string format.for formatting reference.public String formatWithLocale(Locale locale, Object... args)
formatWithLocale in interface org.kohsuke.args4j.Localizablepublic String format(Object... args)
format in interface org.kohsuke.args4j.Localizablepublic static org.kohsuke.args4j.CmdLineException except(org.kohsuke.args4j.CmdLineParser cli,
String format,
String... args)
cli - The CLI parser to reference.format - The string format.args - The string arguments.Copyright © 2016. All rights reserved.