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