edu.stanford.protege.webprotege.criteria.AutoValue_EntityAnnotationCriteria 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.JsonIgnore;
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_EntityAnnotationCriteria extends EntityAnnotationCriteria {
private final AnnotationCriteria annotationCriteria;
private final int annotationPresenceOrdinal;
AutoValue_EntityAnnotationCriteria(
AnnotationCriteria annotationCriteria,
int annotationPresenceOrdinal) {
if (annotationCriteria == null) {
throw new NullPointerException("Null annotationCriteria");
}
this.annotationCriteria = annotationCriteria;
this.annotationPresenceOrdinal = annotationPresenceOrdinal;
}
@JsonProperty("annotation")
@Nonnull
@Override
public AnnotationCriteria getAnnotationCriteria() {
return annotationCriteria;
}
@JsonIgnore
@Override
protected int getAnnotationPresenceOrdinal() {
return annotationPresenceOrdinal;
}
@Override
public String toString() {
return "EntityAnnotationCriteria{"
+ "annotationCriteria=" + annotationCriteria + ", "
+ "annotationPresenceOrdinal=" + annotationPresenceOrdinal
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof EntityAnnotationCriteria) {
EntityAnnotationCriteria that = (EntityAnnotationCriteria) o;
return this.annotationCriteria.equals(that.getAnnotationCriteria())
&& this.annotationPresenceOrdinal == that.getAnnotationPresenceOrdinal();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= annotationCriteria.hashCode();
h$ *= 1000003;
h$ ^= annotationPresenceOrdinal;
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy