com.google.gerrit.acceptance.testsuite.account.AutoValue_TestAccountInvalidation 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.account;
import com.google.gerrit.acceptance.testsuite.ThrowingConsumer;
import java.util.Optional;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_TestAccountInvalidation extends TestAccountInvalidation {
private final Optional preferredEmailWithoutExternalId;
private final ThrowingConsumer accountInvalidator;
private AutoValue_TestAccountInvalidation(
Optional preferredEmailWithoutExternalId,
ThrowingConsumer accountInvalidator) {
this.preferredEmailWithoutExternalId = preferredEmailWithoutExternalId;
this.accountInvalidator = accountInvalidator;
}
@Override
public Optional preferredEmailWithoutExternalId() {
return preferredEmailWithoutExternalId;
}
@Override
ThrowingConsumer accountInvalidator() {
return accountInvalidator;
}
@Override
public String toString() {
return "TestAccountInvalidation{"
+ "preferredEmailWithoutExternalId=" + preferredEmailWithoutExternalId + ", "
+ "accountInvalidator=" + accountInvalidator
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof TestAccountInvalidation) {
TestAccountInvalidation that = (TestAccountInvalidation) o;
return this.preferredEmailWithoutExternalId.equals(that.preferredEmailWithoutExternalId())
&& this.accountInvalidator.equals(that.accountInvalidator());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= preferredEmailWithoutExternalId.hashCode();
h$ *= 1000003;
h$ ^= accountInvalidator.hashCode();
return h$;
}
static final class Builder extends TestAccountInvalidation.Builder {
private Optional preferredEmailWithoutExternalId = Optional.empty();
private ThrowingConsumer accountInvalidator;
Builder() {
}
@Override
public TestAccountInvalidation.Builder preferredEmailWithoutExternalId(String preferredEmailWithoutExternalId) {
this.preferredEmailWithoutExternalId = Optional.of(preferredEmailWithoutExternalId);
return this;
}
@Override
TestAccountInvalidation.Builder accountInvalidator(ThrowingConsumer accountInvalidator) {
if (accountInvalidator == null) {
throw new NullPointerException("Null accountInvalidator");
}
this.accountInvalidator = accountInvalidator;
return this;
}
@Override
TestAccountInvalidation autoBuild() {
if (this.accountInvalidator == null) {
String missing = " accountInvalidator";
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_TestAccountInvalidation(
this.preferredEmailWithoutExternalId,
this.accountInvalidator);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy