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