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

org.graylog.integrations.inputs.paloalto.AutoValue_PaloAltoFieldTemplate Maven / Gradle / Ivy

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

import javax.annotation.processing.Generated;

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

  private final int position;

  private final String field;

  private final PaloAltoFieldType fieldType;

  AutoValue_PaloAltoFieldTemplate(
      int position,
      String field,
      PaloAltoFieldType fieldType) {
    this.position = position;
    if (field == null) {
      throw new NullPointerException("Null field");
    }
    this.field = field;
    if (fieldType == null) {
      throw new NullPointerException("Null fieldType");
    }
    this.fieldType = fieldType;
  }

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

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

  @Override
  public PaloAltoFieldType fieldType() {
    return fieldType;
  }

  @Override
  public String toString() {
    return "PaloAltoFieldTemplate{"
        + "position=" + position + ", "
        + "field=" + field + ", "
        + "fieldType=" + fieldType
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PaloAltoFieldTemplate) {
      PaloAltoFieldTemplate that = (PaloAltoFieldTemplate) o;
      return this.position == that.position()
          && this.field.equals(that.field())
          && this.fieldType.equals(that.fieldType());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= position;
    h$ *= 1000003;
    h$ ^= field.hashCode();
    h$ *= 1000003;
    h$ ^= fieldType.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy