org.molgenis.semanticsearch.explain.bean.AutoValue_ExplainedAttributeDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-semantic-search Show documentation
Show all versions of molgenis-semantic-search Show documentation
Semantic data search service functionality.
The newest version!
package org.molgenis.semanticsearch.explain.bean;
import java.util.Map;
import java.util.Set;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ExplainedAttributeDto extends ExplainedAttributeDto {
private final Map attribute;
private final Set explainedQueryStrings;
private final boolean highQuality;
AutoValue_ExplainedAttributeDto(
Map attribute,
Set explainedQueryStrings,
boolean highQuality) {
if (attribute == null) {
throw new NullPointerException("Null attribute");
}
this.attribute = attribute;
if (explainedQueryStrings == null) {
throw new NullPointerException("Null explainedQueryStrings");
}
this.explainedQueryStrings = explainedQueryStrings;
this.highQuality = highQuality;
}
@Override
public Map getAttribute() {
return attribute;
}
@Override
public Set getExplainedQueryStrings() {
return explainedQueryStrings;
}
@Override
public boolean isHighQuality() {
return highQuality;
}
@Override
public String toString() {
return "ExplainedAttributeDto{"
+ "attribute=" + attribute + ", "
+ "explainedQueryStrings=" + explainedQueryStrings + ", "
+ "highQuality=" + highQuality
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ExplainedAttributeDto) {
ExplainedAttributeDto that = (ExplainedAttributeDto) o;
return this.attribute.equals(that.getAttribute())
&& this.explainedQueryStrings.equals(that.getExplainedQueryStrings())
&& this.highQuality == that.isHighQuality();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= attribute.hashCode();
h$ *= 1000003;
h$ ^= explainedQueryStrings.hashCode();
h$ *= 1000003;
h$ ^= highQuality ? 1231 : 1237;
return h$;
}
}