com.google.gerrit.server.account.AutoValue_ProjectWatches_NotifyValue Maven / Gradle / Ivy
The newest version!
package com.google.gerrit.server.account;
import com.google.common.collect.ImmutableSet;
import com.google.gerrit.common.Nullable;
import com.google.gerrit.entities.NotifyConfig;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ProjectWatches_NotifyValue extends ProjectWatches.NotifyValue {
@Nullable
private final String filter;
private final ImmutableSet notifyTypes;
AutoValue_ProjectWatches_NotifyValue(
@Nullable String filter,
ImmutableSet notifyTypes) {
this.filter = filter;
if (notifyTypes == null) {
throw new NullPointerException("Null notifyTypes");
}
this.notifyTypes = notifyTypes;
}
@Nullable
@Override
public String filter() {
return filter;
}
@Override
public ImmutableSet notifyTypes() {
return notifyTypes;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ProjectWatches.NotifyValue) {
ProjectWatches.NotifyValue that = (ProjectWatches.NotifyValue) o;
return (this.filter == null ? that.filter() == null : this.filter.equals(that.filter()))
&& this.notifyTypes.equals(that.notifyTypes());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (filter == null) ? 0 : filter.hashCode();
h$ *= 1000003;
h$ ^= notifyTypes.hashCode();
return h$;
}
}