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

io.github.mmm.validation.number.ValidatorBuilderBigDecimal 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;

import java.math.BigDecimal;

import io.github.mmm.validation.AbstractValidator;
import io.github.mmm.validation.main.ObjectValidatorBuilder;

/**
 * The {@link ObjectValidatorBuilder builder} of {@link AbstractValidator} for {@link Double} values.
 *
 * @param  the generic type of the {@link #and() parent builder}.
 *
 * @since 1.0.0
 */
public class ValidatorBuilderBigDecimal
    extends NumberValidatorBuilder> {

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

    super(parent);
  }

  @Override
  protected BigDecimal parse(String string) {

    return new BigDecimal(string);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy