All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.fluentvalidator.builder.AttemptedValue Maven / Gradle / Ivy

The newest version!
package br.com.fluentvalidator.builder;

import java.util.function.Function;

import br.com.fluentvalidator.exception.ValidationException;

public interface AttemptedValue, N extends Whenever> extends RuleBuilder {

  /**
   *
   * @param code
   * @return
   */
  Code withCode(final String code);

  /**
   *
   * @param code
   * @return
   */
  Code withCode(final Function code);

  /**
   *
   * @param message
   * @return
   */
  Message withMessage(final String message);

  /**
   *
   * @param message
   * @return
   */
  Message withMessage(final Function message);

  /**
   *
   * @param fieldName
   * @return
   */
  FieldName withFieldName(final String fieldName);

  /**
   *
   * @param fieldName
   * @return
   */
  FieldName withFieldName(final Function fieldName);

  /**
   *
   * @return
   */
  Critical critical();

  /**
   *
   * @param clazz
   * @return
   */
  Critical critical(final Class clazz);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy