dev.cel.common.values.AutoValue_StringValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validators Show documentation
Show all versions of validators Show documentation
Common Expression Language Validators for Java
The newest version!
package dev.cel.common.values;
import org.jspecify.nullness.Nullable;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_StringValue extends StringValue {
private final String value;
AutoValue_StringValue(
String value) {
if (value == null) {
throw new NullPointerException("Null value");
}
this.value = value;
}
@Override
public String value() {
return value;
}
@Override
public String toString() {
return "StringValue{"
+ "value=" + value
+ "}";
}
@Override
public boolean equals(@Nullable Object o) {
if (o == this) {
return true;
}
if (o instanceof StringValue) {
StringValue that = (StringValue) 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