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