dev.cel.checker.AutoValue_ExprChecker_OverloadResolution Maven / Gradle / Ivy
package dev.cel.checker;
import dev.cel.common.ast.CelReference;
import dev.cel.common.types.CelType;
import org.jspecify.nullness.Nullable;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_ExprChecker_OverloadResolution extends ExprChecker.OverloadResolution {
private final CelReference reference;
private final CelType type;
AutoValue_ExprChecker_OverloadResolution(
CelReference reference,
CelType type) {
if (reference == null) {
throw new NullPointerException("Null reference");
}
this.reference = reference;
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
}
@Override
public CelReference reference() {
return reference;
}
@Override
public CelType type() {
return type;
}
@Override
public String toString() {
return "OverloadResolution{"
+ "reference=" + reference + ", "
+ "type=" + type
+ "}";
}
@Override
public boolean equals(@Nullable Object o) {
if (o == this) {
return true;
}
if (o instanceof ExprChecker.OverloadResolution) {
ExprChecker.OverloadResolution that = (ExprChecker.OverloadResolution) o;
return this.reference.equals(that.reference())
&& this.type.equals(that.type());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= reference.hashCode();
h$ *= 1000003;
h$ ^= type.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy