
org.molgenis.api.data.v1.AutoValue_Link Maven / Gradle / Ivy
package org.molgenis.api.data.v1;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Link extends Link {
private final String href;
private final String hrefCollection;
AutoValue_Link(
String href,
String hrefCollection) {
if (href == null) {
throw new NullPointerException("Null href");
}
this.href = href;
if (hrefCollection == null) {
throw new NullPointerException("Null hrefCollection");
}
this.hrefCollection = hrefCollection;
}
@Override
String getHref() {
return href;
}
@Override
String getHrefCollection() {
return hrefCollection;
}
@Override
public String toString() {
return "Link{"
+ "href=" + href + ", "
+ "hrefCollection=" + hrefCollection
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Link) {
Link that = (Link) o;
return (this.href.equals(that.getHref()))
&& (this.hrefCollection.equals(that.getHrefCollection()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.href.hashCode();
h *= 1000003;
h ^= this.hrefCollection.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy