java.lang.Object
church.i18n.processing.message.I18nMessage
- All Implemented Interfaces:
Serializable
Message specified by its code that could be a reference to resource bundle; or a raw message
that could contain parameters. The message could be localized by
ResourceBundle
and formatted by MessageFormat.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionI18nMessage(@NotNull String code, @Nullable Object... params) Simple message that can be localized and formatted. -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull StringgetCode()The code reference in the localization property file; or a raw message that could contain parameters.@Nullable Object[]Parameters that needs to be provided to properly format the message with all parameters.inthashCode()@NotNull StringtoString()
-
Constructor Details
-
I18nMessage
Simple message that can be localized and formatted.- Parameters:
code- The code reference in the localization property file; or a raw message that could contain parameters.params- Parameters that needs to be provided to properly format the message with all parameters.
-
-
Method Details
-
getCode
The code reference in the localization property file; or a raw message that could contain parameters.- Returns:
- Assigned code value.
-
getMessageParams
Parameters that needs to be provided to properly format the message with all parameters.- Returns:
- The array of assigned parameters.
-
hashCode
public int hashCode() -
equals
-
toString
-