Class SingleLocalizableMessage

    • Constructor Detail

      • SingleLocalizableMessage

        public SingleLocalizableMessage​(String key,
                                        Object[] args,
                                        String fallbackMessage)
    • Method Detail

      • getKey

        public String getKey()
        Message key. This is the key in localization files that determine message or message template.
      • getArgs

        public Object[] getArgs()
        Message template arguments.
      • getFallbackMessage

        public String getFallbackMessage()
        Fallback message. This message is used in case that the message key cannot be found in the localization files.
        Specified by:
        getFallbackMessage in interface LocalizableMessage
      • getFallbackLocalizableMessage

        public LocalizableMessage getFallbackLocalizableMessage()
        Fallback localization message. This message is used in case that the message key cannot be found in the localization files.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • shortDump

        public void shortDump​(StringBuilder sb)
        Description copied from interface: ShortDumpable
        Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.
        Specified by:
        shortDump in interface ShortDumpable
        Parameters:
        sb - StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.