edu.stanford.protege.webprotege.bulkop.AutoValue_AnnotationSimpleMatchingCriteria Maven / Gradle / Ivy
package edu.stanford.protege.webprotege.bulkop;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
import org.semanticweb.owlapi.model.OWLAnnotationProperty;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AnnotationSimpleMatchingCriteria extends AnnotationSimpleMatchingCriteria {
private final OWLAnnotationProperty prop;
private final boolean matchValue;
private final String value;
private final boolean valueRegularExpression;
private final boolean matchLangTag;
private final String langTag;
AutoValue_AnnotationSimpleMatchingCriteria(
@Nullable OWLAnnotationProperty prop,
boolean matchValue,
String value,
boolean valueRegularExpression,
boolean matchLangTag,
String langTag) {
this.prop = prop;
this.matchValue = matchValue;
if (value == null) {
throw new NullPointerException("Null value");
}
this.value = value;
this.valueRegularExpression = valueRegularExpression;
this.matchLangTag = matchLangTag;
if (langTag == null) {
throw new NullPointerException("Null langTag");
}
this.langTag = langTag;
}
@Nullable
@Override
protected OWLAnnotationProperty getProp() {
return prop;
}
@Override
public boolean isMatchValue() {
return matchValue;
}
@Nonnull
@Override
public String getValue() {
return value;
}
@Override
public boolean isValueRegularExpression() {
return valueRegularExpression;
}
@Override
public boolean isMatchLangTag() {
return matchLangTag;
}
@Nonnull
@Override
public String getLangTag() {
return langTag;
}
@Override
public String toString() {
return "AnnotationSimpleMatchingCriteria{"
+ "prop=" + prop + ", "
+ "matchValue=" + matchValue + ", "
+ "value=" + value + ", "
+ "valueRegularExpression=" + valueRegularExpression + ", "
+ "matchLangTag=" + matchLangTag + ", "
+ "langTag=" + langTag
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AnnotationSimpleMatchingCriteria) {
AnnotationSimpleMatchingCriteria that = (AnnotationSimpleMatchingCriteria) o;
return (this.prop == null ? that.getProp() == null : this.prop.equals(that.getProp()))
&& this.matchValue == that.isMatchValue()
&& this.value.equals(that.getValue())
&& this.valueRegularExpression == that.isValueRegularExpression()
&& this.matchLangTag == that.isMatchLangTag()
&& this.langTag.equals(that.getLangTag());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (prop == null) ? 0 : prop.hashCode();
h$ *= 1000003;
h$ ^= matchValue ? 1231 : 1237;
h$ *= 1000003;
h$ ^= value.hashCode();
h$ *= 1000003;
h$ ^= valueRegularExpression ? 1231 : 1237;
h$ *= 1000003;
h$ ^= matchLangTag ? 1231 : 1237;
h$ *= 1000003;
h$ ^= langTag.hashCode();
return h$;
}
}