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