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

    Modifier and Type
    Method
    Description
    createMessage(boolean isWarning, T value)
    Called when the guardrail is triggered to build the corresponding message.
  • Method Details

    • createMessage

      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.