edu.stanford.protege.webprotege.criteria.AutoValue_CompositeAnnotationValueCriteria 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 java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_CompositeAnnotationValueCriteria extends CompositeAnnotationValueCriteria {
private final List extends AnnotationValueCriteria> annotationValueCriteria;
private final MultiMatchType multiMatchType;
AutoValue_CompositeAnnotationValueCriteria(
List extends AnnotationValueCriteria> annotationValueCriteria,
MultiMatchType multiMatchType) {
if (annotationValueCriteria == null) {
throw new NullPointerException("Null annotationValueCriteria");
}
this.annotationValueCriteria = annotationValueCriteria;
if (multiMatchType == null) {
throw new NullPointerException("Null multiMatchType");
}
this.multiMatchType = multiMatchType;
}
@Nonnull
@JsonProperty("annotationValues")
@Override
public List extends AnnotationValueCriteria> getAnnotationValueCriteria() {
return annotationValueCriteria;
}
@JsonProperty("matchType")
@Nonnull
@Override
public MultiMatchType getMultiMatchType() {
return multiMatchType;
}
@Override
public String toString() {
return "CompositeAnnotationValueCriteria{"
+ "annotationValueCriteria=" + annotationValueCriteria + ", "
+ "multiMatchType=" + multiMatchType
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CompositeAnnotationValueCriteria) {
CompositeAnnotationValueCriteria that = (CompositeAnnotationValueCriteria) o;
return this.annotationValueCriteria.equals(that.getAnnotationValueCriteria())
&& this.multiMatchType.equals(that.getMultiMatchType());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= annotationValueCriteria.hashCode();
h$ *= 1000003;
h$ ^= multiMatchType.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy