edu.stanford.protege.webprotege.viz.AutoValue_CompositeEdgeCriteria Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.viz;
import com.google.common.collect.ImmutableList;
import edu.stanford.protege.webprotege.criteria.MultiMatchType;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_CompositeEdgeCriteria extends CompositeEdgeCriteria {
private final ImmutableList criteria;
private final MultiMatchType matchType;
AutoValue_CompositeEdgeCriteria(
ImmutableList criteria,
MultiMatchType matchType) {
if (criteria == null) {
throw new NullPointerException("Null criteria");
}
this.criteria = criteria;
if (matchType == null) {
throw new NullPointerException("Null matchType");
}
this.matchType = matchType;
}
@Nonnull
@Override
public ImmutableList getCriteria() {
return criteria;
}
@Nonnull
@Override
public MultiMatchType getMatchType() {
return matchType;
}
@Override
public String toString() {
return "CompositeEdgeCriteria{"
+ "criteria=" + criteria + ", "
+ "matchType=" + matchType
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CompositeEdgeCriteria) {
CompositeEdgeCriteria that = (CompositeEdgeCriteria) o;
return this.criteria.equals(that.getCriteria())
&& this.matchType.equals(that.getMatchType());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= criteria.hashCode();
h$ *= 1000003;
h$ ^= matchType.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy