Interface Predicates.MessageProvider<T>

  • Enclosing class:
    Predicates<T>

    public static interface Predicates.MessageProvider<T>
    A function used to build the warning or error message of a triggered Predicates guardrail.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String createMessage​(boolean isWarning, T value)
      Called when the guardrail is triggered to build the corresponding message.
    • Method Detail

      • createMessage

        java.lang.String createMessage​(boolean isWarning,
                                       T value)
        Called when the guardrail is triggered to build the corresponding message.
        Parameters:
        isWarning - whether the trigger is a warning one; otherwise it is failure one.
        value - the value that triggers guardrail.