edu.stanford.protege.webprotege.criteria.AutoValue_StringEqualsCriteria Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webprotege-criteria Show documentation
Show all versions of webprotege-criteria Show documentation
Data structures for representing matching criteria
package edu.stanford.protege.webprotege.criteria;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_StringEqualsCriteria extends StringEqualsCriteria {
private final String value;
private final boolean ignoreCase;
AutoValue_StringEqualsCriteria(
String value,
boolean ignoreCase) {
if (value == null) {
throw new NullPointerException("Null value");
}
this.value = value;
this.ignoreCase = ignoreCase;
}
@Override
public String getValue() {
return value;
}
@Override
public boolean isIgnoreCase() {
return ignoreCase;
}
@Override
public String toString() {
return "StringEqualsCriteria{"
+ "value=" + value + ", "
+ "ignoreCase=" + ignoreCase
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof StringEqualsCriteria) {
StringEqualsCriteria that = (StringEqualsCriteria) o;
return this.value.equals(that.getValue())
&& this.ignoreCase == that.isIgnoreCase();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= value.hashCode();
h$ *= 1000003;
h$ ^= ignoreCase ? 1231 : 1237;
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy