org.graylog.plugins.netflow.v9.AutoValue_NetFlowV9OptionTemplate Maven / Gradle / Ivy
package org.graylog.plugins.netflow.v9;
import com.google.common.collect.ImmutableList;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NetFlowV9OptionTemplate extends NetFlowV9OptionTemplate {
private final int templateId;
private final ImmutableList scopeDefs;
private final ImmutableList optionDefs;
AutoValue_NetFlowV9OptionTemplate(
int templateId,
ImmutableList scopeDefs,
ImmutableList optionDefs) {
this.templateId = templateId;
if (scopeDefs == null) {
throw new NullPointerException("Null scopeDefs");
}
this.scopeDefs = scopeDefs;
if (optionDefs == null) {
throw new NullPointerException("Null optionDefs");
}
this.optionDefs = optionDefs;
}
@Override
public int templateId() {
return templateId;
}
@Override
public ImmutableList scopeDefs() {
return scopeDefs;
}
@Override
public ImmutableList optionDefs() {
return optionDefs;
}
@Override
public String toString() {
return "NetFlowV9OptionTemplate{"
+ "templateId=" + templateId + ", "
+ "scopeDefs=" + scopeDefs + ", "
+ "optionDefs=" + optionDefs
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NetFlowV9OptionTemplate) {
NetFlowV9OptionTemplate that = (NetFlowV9OptionTemplate) o;
return this.templateId == that.templateId()
&& this.scopeDefs.equals(that.scopeDefs())
&& this.optionDefs.equals(that.optionDefs());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= templateId;
h$ *= 1000003;
h$ ^= scopeDefs.hashCode();
h$ *= 1000003;
h$ ^= optionDefs.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy