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

org.graylog2.storage.versionprobe.AutoValue_VersionResponse Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.storage.versionprobe;

import javax.annotation.Generated;
import javax.annotation.Nullable;

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

  private final String number;

  private final String distribution;

  AutoValue_VersionResponse(
      String number,
      @Nullable String distribution) {
    if (number == null) {
      throw new NullPointerException("Null number");
    }
    this.number = number;
    this.distribution = distribution;
  }

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

  @Nullable
  @Override
  public String distribution() {
    return distribution;
  }

  @Override
  public String toString() {
    return "VersionResponse{"
        + "number=" + number + ", "
        + "distribution=" + distribution
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof VersionResponse) {
      VersionResponse that = (VersionResponse) o;
      return this.number.equals(that.number())
          && (this.distribution == null ? that.distribution() == null : this.distribution.equals(that.distribution()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= number.hashCode();
    h$ *= 1000003;
    h$ ^= (distribution == null) ? 0 : distribution.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy