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

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

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

import javax.annotation.processing.Generated;

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

  private final int id;

  private final int length;

  private final long enterpriseNumber;

  AutoValue_InformationElement(
      int id,
      int length,
      long enterpriseNumber) {
    this.id = id;
    this.length = length;
    this.enterpriseNumber = enterpriseNumber;
  }

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

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

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

  @Override
  public String toString() {
    return "InformationElement{"
        + "id=" + id + ", "
        + "length=" + length + ", "
        + "enterpriseNumber=" + enterpriseNumber
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof InformationElement) {
      InformationElement that = (InformationElement) o;
      return this.id == that.id()
          && this.length == that.length()
          && this.enterpriseNumber == that.enterpriseNumber();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= id;
    h$ *= 1000003;
    h$ ^= length;
    h$ *= 1000003;
    h$ ^= (int) ((enterpriseNumber >>> 32) ^ enterpriseNumber);
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy