br.com.objectos.schema.info.DefaultValueBuilderPojo Maven / Gradle / Ivy
package br.com.objectos.schema.info;
import java.util.Optional;
import javax.annotation.Generated;
@Generated({
"br.com.objectos.pojo.compiler.PojoCompiler",
"br.com.objectos.pojo.plugin.OptionalPlugin",
"br.com.objectos.pojo.plugin.StandardBuilderPropertyAction"
})
final class DefaultValueBuilderPojo implements DefaultValueBuilder, DefaultValueBuilder.DefaultValueBuilderSet, DefaultValueBuilder.DefaultValueBuilderValue {
private boolean set;
private Optional value;
public DefaultValueBuilderPojo() {
}
@Override
public DefaultValue build() {
return new DefaultValuePojo(this);
}
@Override
public DefaultValueBuilder.DefaultValueBuilderSet set(boolean set) {
this.set = set;
return this;
}
boolean ___get___set() {
return set;
}
@Override
public DefaultValueBuilder.DefaultValueBuilderValue value(Optional value) {
if (value == null) {
throw new NullPointerException();
}
this.value = value;
return this;
}
Optional ___get___value() {
return value;
}
@Override
public DefaultValueBuilder.DefaultValueBuilderValue value() {
this.value = Optional.empty();
return this;
}
@Override
public DefaultValueBuilder.DefaultValueBuilderValue valueOf(T value) {
this.value = Optional.of(value);
return this;
}
@Override
public DefaultValueBuilder.DefaultValueBuilderValue valueOfNullable(T value) {
this.value = Optional.ofNullable(value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy