org.graylog.integrations.ipfix.AutoValue_ShallowDataSet Maven / Gradle / Ivy
package org.graylog.integrations.ipfix;
import java.util.Arrays;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ShallowDataSet extends ShallowDataSet {
private final int templateId;
private final long epochSeconds;
private final byte[] content;
AutoValue_ShallowDataSet(
int templateId,
long epochSeconds,
byte[] content) {
this.templateId = templateId;
this.epochSeconds = epochSeconds;
if (content == null) {
throw new NullPointerException("Null content");
}
this.content = content;
}
@Override
public int templateId() {
return templateId;
}
@Override
public long epochSeconds() {
return epochSeconds;
}
@SuppressWarnings("mutable")
@Override
public byte[] content() {
return content;
}
@Override
public String toString() {
return "ShallowDataSet{"
+ "templateId=" + templateId + ", "
+ "epochSeconds=" + epochSeconds + ", "
+ "content=" + Arrays.toString(content)
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ShallowDataSet) {
ShallowDataSet that = (ShallowDataSet) o;
return this.templateId == that.templateId()
&& this.epochSeconds == that.epochSeconds()
&& Arrays.equals(this.content, (that instanceof AutoValue_ShallowDataSet) ? ((AutoValue_ShallowDataSet) that).content : that.content());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= templateId;
h$ *= 1000003;
h$ ^= (int) ((epochSeconds >>> 32) ^ epochSeconds);
h$ *= 1000003;
h$ ^= Arrays.hashCode(content);
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy