com.google.gerrit.acceptance.testsuite.change.AutoValue_TestChange 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.entities.Change;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_TestChange extends TestChange {
private final Change.Id numericChangeId;
private final String changeId;
private AutoValue_TestChange(
Change.Id numericChangeId,
String changeId) {
this.numericChangeId = numericChangeId;
this.changeId = changeId;
}
@Override
public Change.Id numericChangeId() {
return numericChangeId;
}
@Override
public String changeId() {
return changeId;
}
@Override
public String toString() {
return "TestChange{"
+ "numericChangeId=" + numericChangeId + ", "
+ "changeId=" + changeId
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof TestChange) {
TestChange that = (TestChange) o;
return this.numericChangeId.equals(that.numericChangeId())
&& this.changeId.equals(that.changeId());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= numericChangeId.hashCode();
h$ *= 1000003;
h$ ^= changeId.hashCode();
return h$;
}
static final class Builder extends TestChange.Builder {
private Change.Id numericChangeId;
private String changeId;
Builder() {
}
@Override
TestChange.Builder numericChangeId(Change.Id numericChangeId) {
if (numericChangeId == null) {
throw new NullPointerException("Null numericChangeId");
}
this.numericChangeId = numericChangeId;
return this;
}
@Override
TestChange.Builder changeId(String changeId) {
if (changeId == null) {
throw new NullPointerException("Null changeId");
}
this.changeId = changeId;
return this;
}
@Override
TestChange build() {
if (this.numericChangeId == null
|| this.changeId == null) {
StringBuilder missing = new StringBuilder();
if (this.numericChangeId == null) {
missing.append(" numericChangeId");
}
if (this.changeId == null) {
missing.append(" changeId");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_TestChange(
this.numericChangeId,
this.changeId);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy