org.molgenis.api.model.response.AutoValue_AppVersionResponse Maven / Gradle / Ivy
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$;
}
}