public class I18nString extends Object implements I18nAware
| Modifier and Type | Field and Description |
|---|---|
static Object[] |
EMPTY_ARGS |
| Constructor and Description |
|---|
I18nString(String code) |
I18nString(String code,
String hint) |
I18nString(String code,
String hint,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Object[] |
getArgs() |
@NotNull String |
getCode() |
@NotNull String |
getHint() |
@Nullable Object[] |
getI18nArgs()
获得 i18n 参数
|
@Nullable String |
getI18nCode()
获得i18nCode,默认code
|
boolean |
isEmpty() |
I18nString |
setArgs(Object... args) |
I18nString |
setHint(String hint) |
String |
toString() |
@NotNull String |
toString(Locale locale) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoI18nStringpublic static final Object[] EMPTY_ARGS
public I18nString(String code)
@NotNull public @NotNull String getCode()
@NotNull public @NotNull String getHint()
public I18nString setHint(String hint)
@NotNull public @NotNull Object[] getArgs()
public I18nString setArgs(Object... args)
public boolean isEmpty()
@Nullable public @Nullable String getI18nCode()
I18nAwaregetI18nCode in interface I18nAware@Nullable public @Nullable Object[] getI18nArgs()
I18nAwaregetI18nArgs in interface I18nAwareCopyright © 2020. All rights reserved.