edu.stanford.protege.webprotege.criteria.AutoValue_AnnotationComponentsCriteria 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_AnnotationComponentsCriteria extends AnnotationComponentsCriteria {
private final AnnotationPropertyCriteria annotationPropertyCriteria;
private final AnnotationValueCriteria annotationValueCriteria;
private final AnnotationSetCriteria annotationSetCriteria;
AutoValue_AnnotationComponentsCriteria(
AnnotationPropertyCriteria annotationPropertyCriteria,
AnnotationValueCriteria annotationValueCriteria,
AnnotationSetCriteria annotationSetCriteria) {
if (annotationPropertyCriteria == null) {
throw new NullPointerException("Null annotationPropertyCriteria");
}
this.annotationPropertyCriteria = annotationPropertyCriteria;
if (annotationValueCriteria == null) {
throw new NullPointerException("Null annotationValueCriteria");
}
this.annotationValueCriteria = annotationValueCriteria;
if (annotationSetCriteria == null) {
throw new NullPointerException("Null annotationSetCriteria");
}
this.annotationSetCriteria = annotationSetCriteria;
}
@JsonProperty("property")
@Nonnull
@Override
public AnnotationPropertyCriteria getAnnotationPropertyCriteria() {
return annotationPropertyCriteria;
}
@JsonProperty("value")
@Nonnull
@Override
public AnnotationValueCriteria getAnnotationValueCriteria() {
return annotationValueCriteria;
}
@JsonProperty("annotations")
@Nonnull
@Override
public AnnotationSetCriteria getAnnotationSetCriteria() {
return annotationSetCriteria;
}
@Override
public String toString() {
return "AnnotationComponentsCriteria{"
+ "annotationPropertyCriteria=" + annotationPropertyCriteria + ", "
+ "annotationValueCriteria=" + annotationValueCriteria + ", "
+ "annotationSetCriteria=" + annotationSetCriteria
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AnnotationComponentsCriteria) {
AnnotationComponentsCriteria that = (AnnotationComponentsCriteria) o;
return this.annotationPropertyCriteria.equals(that.getAnnotationPropertyCriteria())
&& this.annotationValueCriteria.equals(that.getAnnotationValueCriteria())
&& this.annotationSetCriteria.equals(that.getAnnotationSetCriteria());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= annotationPropertyCriteria.hashCode();
h$ *= 1000003;
h$ ^= annotationValueCriteria.hashCode();
h$ *= 1000003;
h$ ^= annotationSetCriteria.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy