edu.stanford.protege.webprotege.criteria.AutoValue_CompositeRootCriteria Maven / Gradle / Ivy
package edu.stanford.protege.webprotege.criteria;
import com.fasterxml.jackson.annotation.JsonIgnore;
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_CompositeRootCriteria extends CompositeRootCriteria {
private final List extends RootCriteria> rootCriteria;
private final int multiMatchTypeOrdinal;
AutoValue_CompositeRootCriteria(
List extends RootCriteria> rootCriteria,
int multiMatchTypeOrdinal) {
if (rootCriteria == null) {
throw new NullPointerException("Null rootCriteria");
}
this.rootCriteria = rootCriteria;
this.multiMatchTypeOrdinal = multiMatchTypeOrdinal;
}
@JsonProperty("criteria")
@Nonnull
@Override
public List extends RootCriteria> getRootCriteria() {
return rootCriteria;
}
@JsonIgnore
@Override
protected int getMultiMatchTypeOrdinal() {
return multiMatchTypeOrdinal;
}
@Override
public String toString() {
return "CompositeRootCriteria{"
+ "rootCriteria=" + rootCriteria + ", "
+ "multiMatchTypeOrdinal=" + multiMatchTypeOrdinal
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CompositeRootCriteria) {
CompositeRootCriteria that = (CompositeRootCriteria) o;
return this.rootCriteria.equals(that.getRootCriteria())
&& this.multiMatchTypeOrdinal == that.getMultiMatchTypeOrdinal();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= rootCriteria.hashCode();
h$ *= 1000003;
h$ ^= multiMatchTypeOrdinal;
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy