Class SpringMessage

    • Method Detail

      • of

        public static SpringMessage of​(String[] codes,
                                       Object... arguments)
        returns a Message with message codes,arguments, and default message
        Parameters:
        codes - codes to be used to resolve this message, in the order that they should get tried. The last code will therefore be the default one.
        arguments - array of arguments to be used to resolve this message.
      • of

        public static SpringMessage of​(String[] codes)
        returns a Message with message codes
        Parameters:
        codes - codes to be used to resolve this message, in the order that they should get tried. The last code will therefore be the default one.
      • of

        public static SpringMessage of​(String codes)
        returns a Message with message codes
        Parameters:
        codes - codes to be used to resolve this message
      • of

        public static SpringMessage of​(String codes,
                                       Object... arguments)
        returns a Message with message codes and arguments
        Parameters:
        codes - codes to be used to resolve this message, in the order that they should get tried. The last code will therefore be the default one.
        arguments - array of arguments to be used to resolve this message.
      • orElse

        public SpringMessage orElse​(String defaultMessage)
        returns Message with a default message
        Parameters:
        defaultMessage - default message to be use to resolve this message.