dev.cel.common.values.AutoValue_BytesValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime Show documentation
Show all versions of runtime Show documentation
Common Expression Language Runtime for Java
package dev.cel.common.values;
import org.jspecify.nullness.Nullable;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_BytesValue extends BytesValue {
private final CelByteString value;
AutoValue_BytesValue(
CelByteString value) {
if (value == null) {
throw new NullPointerException("Null value");
}
this.value = value;
}
@Override
public CelByteString value() {
return value;
}
@Override
public String toString() {
return "BytesValue{"
+ "value=" + value
+ "}";
}
@Override
public boolean equals(@Nullable Object o) {
if (o == this) {
return true;
}
if (o instanceof BytesValue) {
BytesValue that = (BytesValue) o;
return this.value.equals(that.value());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= value.hashCode();
return h$;
}
}