com.google.gerrit.acceptance.testsuite.change.AutoValue_TestRobotComment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gerrit-acceptance-framework Show documentation
Show all versions of gerrit-acceptance-framework Show documentation
Framework for Gerrit's acceptance tests
package com.google.gerrit.acceptance.testsuite.change;
import com.google.gerrit.common.Nullable;
import java.util.Optional;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_TestRobotComment extends TestRobotComment {
private final String uuid;
private final Optional parentUuid;
private AutoValue_TestRobotComment(
String uuid,
Optional parentUuid) {
this.uuid = uuid;
this.parentUuid = parentUuid;
}
@Override
public String uuid() {
return uuid;
}
@Override
public Optional parentUuid() {
return parentUuid;
}
@Override
public String toString() {
return "TestRobotComment{"
+ "uuid=" + uuid + ", "
+ "parentUuid=" + parentUuid
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof TestRobotComment) {
TestRobotComment that = (TestRobotComment) o;
return this.uuid.equals(that.uuid())
&& this.parentUuid.equals(that.parentUuid());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= uuid.hashCode();
h$ *= 1000003;
h$ ^= parentUuid.hashCode();
return h$;
}
static final class Builder extends TestRobotComment.Builder {
private String uuid;
private Optional parentUuid = Optional.empty();
Builder() {
}
@Override
TestRobotComment.Builder uuid(String uuid) {
if (uuid == null) {
throw new NullPointerException("Null uuid");
}
this.uuid = uuid;
return this;
}
@Override
TestRobotComment.Builder parentUuid(@Nullable String parentUuid) {
this.parentUuid = Optional.ofNullable(parentUuid);
return this;
}
@Override
TestRobotComment build() {
if (this.uuid == null) {
String missing = " uuid";
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_TestRobotComment(
this.uuid,
this.parentUuid);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy