io.github.mmm.property.builder.number.BigDecimalPropertyBuilder Maven / Gradle / Ivy
/* 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.property.builder.number;
import java.math.BigDecimal;
import io.github.mmm.property.AttributeReadOnly;
import io.github.mmm.property.PropertyMetadata;
import io.github.mmm.property.builder.PropertyBuilder;
import io.github.mmm.property.builder.lang.ComparablePropertyBuilder;
import io.github.mmm.property.number.bigdecimal.BigDecimalProperty;
import io.github.mmm.validation.number.ValidatorBuilderBigDecimal;
/**
* {@link PropertyBuilder} for {@link BigDecimalProperty}.
*
* @since 1.0.0
*/
public final class BigDecimalPropertyBuilder extends
ComparablePropertyBuilder, BigDecimalPropertyBuilder> {
/**
* The constructor.
*
* @param lock the {@link #getLock() lock}.
*/
public BigDecimalPropertyBuilder(AttributeReadOnly lock) {
super(lock);
}
@Override
protected ValidatorBuilderBigDecimal createValidatorBuilder() {
return new ValidatorBuilderBigDecimal<>(this);
}
@Override
protected BigDecimalProperty build(String name, PropertyMetadata metadata) {
return new BigDecimalProperty(name, metadata);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy