edu.stanford.protege.webprotege.criteria.AutoValue_StringStartsWithCriteria Maven / Gradle / Ivy
package edu.stanford.protege.webprotege.criteria;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_StringStartsWithCriteria extends StringStartsWithCriteria {
private final String value;
private final boolean ignoreCase;
AutoValue_StringStartsWithCriteria(
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 "StringStartsWithCriteria{"
+ "value=" + value + ", "
+ "ignoreCase=" + ignoreCase
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof StringStartsWithCriteria) {
StringStartsWithCriteria that = (StringStartsWithCriteria) 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