Interface MessageProvider

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface MessageProvider
    Simple functional interface that takes a message key plus an array of message arguments and returns the formatted message.
    • Method Detail

      • getMessage

        String getMessage​(String code,
                          Object... args)
        Resolves the given message key and formats it using the given message arguments.
        Parameters:
        code - the message key
        args - the message arguments
        Returns:
        the formatted message