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

org.molgenis.api.model.response.AutoValue_AppVersionResponse Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version
package org.molgenis.api.model.response;

import java.time.Instant;
import javax.annotation.processing.Generated;

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

  private final String version;

  private final Instant buildDate;

  AutoValue_AppVersionResponse(
      String version,
      Instant buildDate) {
    if (version == null) {
      throw new NullPointerException("Null version");
    }
    this.version = version;
    if (buildDate == null) {
      throw new NullPointerException("Null buildDate");
    }
    this.buildDate = buildDate;
  }

  @Override
  public String getVersion() {
    return version;
  }

  @Override
  public Instant getBuildDate() {
    return buildDate;
  }

  @Override
  public String toString() {
    return "AppVersionResponse{"
         + "version=" + version + ", "
         + "buildDate=" + buildDate
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AppVersionResponse) {
      AppVersionResponse that = (AppVersionResponse) o;
      return this.version.equals(that.getVersion())
          && this.buildDate.equals(that.getBuildDate());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= version.hashCode();
    h$ *= 1000003;
    h$ ^= buildDate.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy