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