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

io.github.mmm.property.builder.number.DoublePropertyBuilder 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 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.doubles.DoubleProperty;
import io.github.mmm.validation.number.ValidatorBuilderDouble;

/**
 * {@link PropertyBuilder} for {@link DoubleProperty}.
 *
 * @since 1.0.0
 */
public final class DoublePropertyBuilder extends
    ComparablePropertyBuilder, DoublePropertyBuilder> {

  /**
   * The constructor.
   *
   * @param lock the {@link #getLock() lock}.
   */
  public DoublePropertyBuilder(AttributeReadOnly lock) {

    super(lock);
  }

  @Override
  protected ValidatorBuilderDouble createValidatorBuilder() {

    return new ValidatorBuilderDouble<>(this);
  }

  @Override
  protected DoubleProperty build(String name, PropertyMetadata metadata) {

    return new DoubleProperty(name, metadata);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy