public PipeParameterValidator validate(
      final MultipleObjectsValidationRule validationRule,
      final String messageToThrow,
      final Object... arguments)
      throws PipeParameterNotValidException {
    if (!validationRule.validate(arguments)) {
      throw new PipeParameterNotValidException(messageToThrow);
    }
    return this;
  }
Validates the input parameters according to the validation rule given by the user.

@param validationRule the validation rule, which can be a lambda expression
@param messageToThrow the message to throw when the given arguments are not valid
@param arguments the given arguments
@throws PipeParameterNotValidException if the given arguments are not valid
iotdb-api/pipe-api/src/main/java/org/apache/iotdb/pipe/api/customizer/parameter/PipeParameterValidator.java