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

org.graylog.plugins.netflow.v9.AutoValue_NetFlowV9Header Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog.plugins.netflow.v9;

import javax.annotation.processing.Generated;

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

  private final int version;

  private final int count;

  private final long sysUptime;

  private final long unixSecs;

  private final long sequence;

  private final long sourceId;

  AutoValue_NetFlowV9Header(
      int version,
      int count,
      long sysUptime,
      long unixSecs,
      long sequence,
      long sourceId) {
    this.version = version;
    this.count = count;
    this.sysUptime = sysUptime;
    this.unixSecs = unixSecs;
    this.sequence = sequence;
    this.sourceId = sourceId;
  }

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

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

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

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

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

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

  @Override
  public String toString() {
    return "NetFlowV9Header{"
        + "version=" + version + ", "
        + "count=" + count + ", "
        + "sysUptime=" + sysUptime + ", "
        + "unixSecs=" + unixSecs + ", "
        + "sequence=" + sequence + ", "
        + "sourceId=" + sourceId
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof NetFlowV9Header) {
      NetFlowV9Header that = (NetFlowV9Header) o;
      return this.version == that.version()
          && this.count == that.count()
          && this.sysUptime == that.sysUptime()
          && this.unixSecs == that.unixSecs()
          && this.sequence == that.sequence()
          && this.sourceId == that.sourceId();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= version;
    h$ *= 1000003;
    h$ ^= count;
    h$ *= 1000003;
    h$ ^= (int) ((sysUptime >>> 32) ^ sysUptime);
    h$ *= 1000003;
    h$ ^= (int) ((unixSecs >>> 32) ^ unixSecs);
    h$ *= 1000003;
    h$ ^= (int) ((sequence >>> 32) ^ sequence);
    h$ *= 1000003;
    h$ ^= (int) ((sourceId >>> 32) ^ sourceId);
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy