edu.stanford.protege.webprotege.criteria.AutoValue_NotSubClassOfCriteria 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 com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
import org.semanticweb.owlapi.model.OWLClass;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NotSubClassOfCriteria extends NotSubClassOfCriteria {
private final OWLClass target;
private final HierarchyFilterType filterType;
AutoValue_NotSubClassOfCriteria(
OWLClass target,
HierarchyFilterType filterType) {
if (target == null) {
throw new NullPointerException("Null target");
}
this.target = target;
if (filterType == null) {
throw new NullPointerException("Null filterType");
}
this.filterType = filterType;
}
@JsonProperty("target")
@Nonnull
@Override
public OWLClass getTarget() {
return target;
}
@JsonProperty("filterType")
@Override
public HierarchyFilterType getFilterType() {
return filterType;
}
@Override
public String toString() {
return "NotSubClassOfCriteria{"
+ "target=" + target + ", "
+ "filterType=" + filterType
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NotSubClassOfCriteria) {
NotSubClassOfCriteria that = (NotSubClassOfCriteria) o;
return this.target.equals(that.getTarget())
&& this.filterType.equals(that.getFilterType());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= target.hashCode();
h$ *= 1000003;
h$ ^= filterType.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy