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

org.graylog.plugins.map.geoip.AutoValue_GeoAsnInformation Maven / Gradle / Ivy

package org.graylog.plugins.map.geoip;

import javax.annotation.Generated;

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

  private final String organization;

  private final String type;

  private final String asn;

  AutoValue_GeoAsnInformation(
      String organization,
      String type,
      String asn) {
    if (organization == null) {
      throw new NullPointerException("Null organization");
    }
    this.organization = organization;
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (asn == null) {
      throw new NullPointerException("Null asn");
    }
    this.asn = asn;
  }

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

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

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

  @Override
  public String toString() {
    return "GeoAsnInformation{"
        + "organization=" + organization + ", "
        + "type=" + type + ", "
        + "asn=" + asn
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof GeoAsnInformation) {
      GeoAsnInformation that = (GeoAsnInformation) o;
      return this.organization.equals(that.organization())
          && this.type.equals(that.type())
          && this.asn.equals(that.asn());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= organization.hashCode();
    h$ *= 1000003;
    h$ ^= type.hashCode();
    h$ *= 1000003;
    h$ ^= asn.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy