org.molgenis.semanticsearch.explain.bean.AutoValue_ExplainedQueryString 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 javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ExplainedQueryString extends ExplainedQueryString {
private final String matchedWords;
private final String queryString;
private final String tagName;
private final double score;
AutoValue_ExplainedQueryString(
String matchedWords,
String queryString,
String tagName,
double score) {
if (matchedWords == null) {
throw new NullPointerException("Null matchedWords");
}
this.matchedWords = matchedWords;
if (queryString == null) {
throw new NullPointerException("Null queryString");
}
this.queryString = queryString;
if (tagName == null) {
throw new NullPointerException("Null tagName");
}
this.tagName = tagName;
this.score = score;
}
@Override
public String getMatchedWords() {
return matchedWords;
}
@Override
public String getQueryString() {
return queryString;
}
@Override
public String getTagName() {
return tagName;
}
@Override
public double getScore() {
return score;
}
@Override
public String toString() {
return "ExplainedQueryString{"
+ "matchedWords=" + matchedWords + ", "
+ "queryString=" + queryString + ", "
+ "tagName=" + tagName + ", "
+ "score=" + score
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ExplainedQueryString) {
ExplainedQueryString that = (ExplainedQueryString) o;
return this.matchedWords.equals(that.getMatchedWords())
&& this.queryString.equals(that.getQueryString())
&& this.tagName.equals(that.getTagName())
&& Double.doubleToLongBits(this.score) == Double.doubleToLongBits(that.getScore());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= matchedWords.hashCode();
h$ *= 1000003;
h$ ^= queryString.hashCode();
h$ *= 1000003;
h$ ^= tagName.hashCode();
h$ *= 1000003;
h$ ^= (int) ((Double.doubleToLongBits(score) >>> 32) ^ Double.doubleToLongBits(score));
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy