io.honnix.rkt.launcher.output.PrepareOutputBuilder Maven / Gradle / Ivy
package io.honnix.rkt.launcher.output;
import io.norberg.automatter.AutoMatter;
import javax.annotation.Generated;
@Generated("io.norberg.automatter.processor.AutoMatterProcessor")
public final class PrepareOutputBuilder {
private String prepared;
public PrepareOutputBuilder() {
}
private PrepareOutputBuilder(PrepareOutput v) {
this.prepared = v.prepared();
}
private PrepareOutputBuilder(PrepareOutputBuilder v) {
this.prepared = v.prepared;
}
public String prepared() {
return prepared;
}
public PrepareOutputBuilder prepared(String prepared) {
if (prepared == null) {
throw new NullPointerException("prepared");
}
this.prepared = prepared;
return this;
}
public PrepareOutput build() {
return new Value(prepared);
}
public static PrepareOutputBuilder from(PrepareOutput v) {
return new PrepareOutputBuilder(v);
}
public static PrepareOutputBuilder from(PrepareOutputBuilder v) {
return new PrepareOutputBuilder(v);
}
private static final class Value implements PrepareOutput {
private final String prepared;
private Value(@AutoMatter.Field("prepared") String prepared) {
if (prepared == null) {
throw new NullPointerException("prepared");
}
this.prepared = prepared;
}
@AutoMatter.Field
@Override
public String prepared() {
return prepared;
}
public PrepareOutputBuilder builder() {
return new PrepareOutputBuilder(this);
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof PrepareOutput)) {
return false;
}
final PrepareOutput that = (PrepareOutput) o;
if (prepared != null ? !prepared.equals(that.prepared()) : that.prepared() != null) {
return false;
}
return true;
}
@Override
public int hashCode() {
int result = 1;
long temp;
result = 31 * result + (prepared != null ? prepared.hashCode() : 0);
return result;
}
@Override
public String toString() {
return "PrepareOutput{" +
"prepared=" + prepared +
'}';
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy