edu.stanford.protege.webprotege.criteria.AutoValue_StringContainsRegexMatchCriteria Maven / Gradle / Ivy
package edu.stanford.protege.webprotege.criteria;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_StringContainsRegexMatchCriteria extends StringContainsRegexMatchCriteria {
private final String pattern;
private final boolean ignoreCase;
AutoValue_StringContainsRegexMatchCriteria(
String pattern,
boolean ignoreCase) {
if (pattern == null) {
throw new NullPointerException("Null pattern");
}
this.pattern = pattern;
this.ignoreCase = ignoreCase;
}
@JsonProperty("pattern")
@Nonnull
@Override
public String getPattern() {
return pattern;
}
@JsonProperty("ignoreCase")
@Override
public boolean isIgnoreCase() {
return ignoreCase;
}
@Override
public String toString() {
return "StringContainsRegexMatchCriteria{"
+ "pattern=" + pattern + ", "
+ "ignoreCase=" + ignoreCase
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof StringContainsRegexMatchCriteria) {
StringContainsRegexMatchCriteria that = (StringContainsRegexMatchCriteria) o;
return this.pattern.equals(that.getPattern())
&& this.ignoreCase == that.isIgnoreCase();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= pattern.hashCode();
h$ *= 1000003;
h$ ^= ignoreCase ? 1231 : 1237;
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy