io.github.mmm.property.builder.time.OffsetTimePropertyBuilder 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.time;
import java.time.OffsetTime;
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.time.offsettime.OffsetTimeProperty;
import io.github.mmm.validation.time.offsettime.ValidatorBuilderOffsetTime;
/**
* {@link PropertyBuilder} for {@link OffsetTimeProperty}.
*
* @since 1.0.0
*/
public final class OffsetTimePropertyBuilder extends
ComparablePropertyBuilder, OffsetTimePropertyBuilder> {
/**
* The constructor.
*
* @param lock the {@link #getLock() lock}.
*/
public OffsetTimePropertyBuilder(AttributeReadOnly lock) {
super(lock);
}
@Override
protected ValidatorBuilderOffsetTime createValidatorBuilder() {
return new ValidatorBuilderOffsetTime<>(this);
}
@Override
protected OffsetTimeProperty build(String name, PropertyMetadata metadata) {
return new OffsetTimeProperty(name, metadata);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy