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

org.graylog.integrations.ipfix.AutoValue_InformationElementDefinition 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_InformationElementDefinition extends InformationElementDefinition {

  private final InformationElementDefinition.DataType dataType;

  private final String fieldName;

  private final int id;

  AutoValue_InformationElementDefinition(
      InformationElementDefinition.DataType dataType,
      String fieldName,
      int id) {
    if (dataType == null) {
      throw new NullPointerException("Null dataType");
    }
    this.dataType = dataType;
    if (fieldName == null) {
      throw new NullPointerException("Null fieldName");
    }
    this.fieldName = fieldName;
    this.id = id;
  }

  @Override
  public InformationElementDefinition.DataType dataType() {
    return dataType;
  }

  @Override
  public String fieldName() {
    return fieldName;
  }

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

  @Override
  public String toString() {
    return "InformationElementDefinition{"
        + "dataType=" + dataType + ", "
        + "fieldName=" + fieldName + ", "
        + "id=" + id
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof InformationElementDefinition) {
      InformationElementDefinition that = (InformationElementDefinition) o;
      return this.dataType.equals(that.dataType())
          && this.fieldName.equals(that.fieldName())
          && this.id == that.id();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= dataType.hashCode();
    h$ *= 1000003;
    h$ ^= fieldName.hashCode();
    h$ *= 1000003;
    h$ ^= id;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy