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

io.github.mmm.validation.number.ValidatorBuilderByte Maven / Gradle / Ivy

The newest version!
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.validation.number;

/**
 * {@link NumberValidatorBuilder Validator builder} for {@link Byte} values.
 *
 * @param  the generic type of the {@link #and() parent builder}.
 *
 * @since 7.6.0
 */
public class ValidatorBuilderByte extends NumberValidatorBuilder> {

  /**
   * The constructor.
   *
   * @param parent the {@link #and() parent} builder.
   */
  public ValidatorBuilderByte(PARENT parent) {

    super(parent);
  }

  /**
   * @see #range(io.github.mmm.base.range.Range)
   *
   * @param min the minimum allowed value.
   * @param max the maximum allowed value.
   * @return this build instance for fluent API calls.
   */
  public ValidatorBuilderByte range(byte min, byte max) {

    return range(Byte.valueOf(min), Byte.valueOf(max));
  }

  @Override
  protected Byte parse(String string) {

    return Byte.valueOf(string);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy