Interface MessageBuilder<O,​C extends NuitonValidationContext,​V extends FieldValidator<O,​?>>

  • 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 MessageBuilder<O,​C extends NuitonValidationContext,​V extends FieldValidator<O,​?>>
    Created at 02/02/2024.
    Since:
    2.0.0
    Author:
    Tony Chemit - dev@tchemit.fr
    • Method Detail

      • build

        String build​(O bean,
                     C validationContext,
                     V validator,
                     String messageKey)
        Build a message.
        Parameters:
        bean - bean used
        validationContext - validation context used
        validator - validator used
        messageKey - the i18n messageKey
        Returns:
        the message