org.molgenis.semanticsearch.explain.bean.AutoValue_ExplainedAttribute 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.
package org.molgenis.semanticsearch.explain.bean;
import java.util.Set;
import javax.annotation.processing.Generated;
import org.molgenis.data.meta.model.Attribute;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ExplainedAttribute extends ExplainedAttribute {
private final Attribute attribute;
private final Set explainedQueryStrings;
private final boolean highQuality;
AutoValue_ExplainedAttribute(
Attribute 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 Attribute getAttribute() {
return attribute;
}
@Override
public Set getExplainedQueryStrings() {
return explainedQueryStrings;
}
@Override
public boolean isHighQuality() {
return highQuality;
}
@Override
public String toString() {
return "ExplainedAttribute{"
+ "attribute=" + attribute + ", "
+ "explainedQueryStrings=" + explainedQueryStrings + ", "
+ "highQuality=" + highQuality
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ExplainedAttribute) {
ExplainedAttribute that = (ExplainedAttribute) 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$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy