org.graylog.plugins.netflow.v9.AutoValue_NetFlowV9OptionRecord Maven / Gradle / Ivy
package org.graylog.plugins.netflow.v9;
import com.google.common.collect.ImmutableMap;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NetFlowV9OptionRecord extends NetFlowV9OptionRecord {
private final ImmutableMap fields;
private final ImmutableMap scopes;
AutoValue_NetFlowV9OptionRecord(
ImmutableMap fields,
ImmutableMap scopes) {
if (fields == null) {
throw new NullPointerException("Null fields");
}
this.fields = fields;
if (scopes == null) {
throw new NullPointerException("Null scopes");
}
this.scopes = scopes;
}
@Override
public ImmutableMap fields() {
return fields;
}
@Override
public ImmutableMap scopes() {
return scopes;
}
@Override
public String toString() {
return "NetFlowV9OptionRecord{"
+ "fields=" + fields + ", "
+ "scopes=" + scopes
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NetFlowV9OptionRecord) {
NetFlowV9OptionRecord that = (NetFlowV9OptionRecord) o;
return this.fields.equals(that.fields())
&& this.scopes.equals(that.scopes());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= fields.hashCode();
h$ *= 1000003;
h$ ^= scopes.hashCode();
return h$;
}
}