com.google.gerrit.server.change.AutoValue_NotifyResolver_Result Maven / Gradle / Ivy
package com.google.gerrit.server.change;
import com.google.common.collect.ImmutableSetMultimap;
import com.google.gerrit.entities.Account;
import com.google.gerrit.extensions.api.changes.NotifyHandling;
import com.google.gerrit.extensions.api.changes.RecipientType;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NotifyResolver_Result extends NotifyResolver.Result {
private final NotifyHandling handling;
private final ImmutableSetMultimap accounts;
AutoValue_NotifyResolver_Result(
NotifyHandling handling,
ImmutableSetMultimap accounts) {
if (handling == null) {
throw new NullPointerException("Null handling");
}
this.handling = handling;
if (accounts == null) {
throw new NullPointerException("Null accounts");
}
this.accounts = accounts;
}
@Override
public NotifyHandling handling() {
return handling;
}
@Override
public ImmutableSetMultimap accounts() {
return accounts;
}
@Override
public String toString() {
return "Result{"
+ "handling=" + handling + ", "
+ "accounts=" + accounts
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NotifyResolver.Result) {
NotifyResolver.Result that = (NotifyResolver.Result) o;
return this.handling.equals(that.handling())
&& this.accounts.equals(that.accounts());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= handling.hashCode();
h$ *= 1000003;
h$ ^= accounts.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy