public class I18nString extends Object implements I18nAware
String can be used as i18n template, * code - template id * args - template arguments * hint - default text or template * i18n - i18n text
| Constructor and Description |
|---|
I18nString(String code) |
I18nString(String code,
String hint) |
I18nString(String code,
String hint,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
@NotNull Object[] |
getArgs() |
@NotNull String |
getCode() |
@NotNull String |
getHint() |
@Nullable String |
getI18n() |
@NotNull Object[] |
getI18nArgs()
get i18n args for template
|
@NotNull String |
getI18nCode()
get i18n code
|
@NotNull String |
getI18nHint()
default message or template
|
int |
hashCode() |
boolean |
isEmpty() |
I18nString |
setI18n(String i18n) |
String |
toString() |
@NotNull String |
toString(Locale locale) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waittoI18nString, toI18nString, toI18nString, toI18nStringArgspublic I18nString(String code)
@NotNull public @NotNull String getCode()
@NotNull public @NotNull Object[] getArgs()
@NotNull public @NotNull String getHint()
@Nullable public @Nullable String getI18n()
@Contract(value="_ -> this") public I18nString setI18n(String i18n)
public boolean isEmpty()
@NotNull public @NotNull String getI18nCode()
I18nAwaregetI18nCode in interface I18nAware@NotNull public @NotNull Object[] getI18nArgs()
I18nAwaregetI18nArgs in interface I18nAware@NotNull public @NotNull String getI18nHint()
I18nAwaregetI18nHint in interface I18nAwareCopyright © 2023. All rights reserved.