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