All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog.integrations.ipfix.AutoValue_MessageHeader Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog.integrations.ipfix;

import java.time.ZonedDateTime;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_MessageHeader extends MessageHeader {

  private final int length;

  private final ZonedDateTime exportTime;

  private final long sequenceNumber;

  private final long observationDomainId;

  AutoValue_MessageHeader(
      int length,
      ZonedDateTime exportTime,
      long sequenceNumber,
      long observationDomainId) {
    this.length = length;
    if (exportTime == null) {
      throw new NullPointerException("Null exportTime");
    }
    this.exportTime = exportTime;
    this.sequenceNumber = sequenceNumber;
    this.observationDomainId = observationDomainId;
  }

  @Override
  public int length() {
    return length;
  }

  @Override
  public ZonedDateTime exportTime() {
    return exportTime;
  }

  @Override
  public long sequenceNumber() {
    return sequenceNumber;
  }

  @Override
  public long observationDomainId() {
    return observationDomainId;
  }

  @Override
  public String toString() {
    return "MessageHeader{"
        + "length=" + length + ", "
        + "exportTime=" + exportTime + ", "
        + "sequenceNumber=" + sequenceNumber + ", "
        + "observationDomainId=" + observationDomainId
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof MessageHeader) {
      MessageHeader that = (MessageHeader) o;
      return this.length == that.length()
          && this.exportTime.equals(that.exportTime())
          && this.sequenceNumber == that.sequenceNumber()
          && this.observationDomainId == that.observationDomainId();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= length;
    h$ *= 1000003;
    h$ ^= exportTime.hashCode();
    h$ *= 1000003;
    h$ ^= (int) ((sequenceNumber >>> 32) ^ sequenceNumber);
    h$ *= 1000003;
    h$ ^= (int) ((observationDomainId >>> 32) ^ observationDomainId);
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy