dev.cel.common.values.AutoValue_TimestampValue 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
The newest version!
package dev.cel.common.values;
import java.time.Instant;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_TimestampValue extends TimestampValue {
private final Instant value;
AutoValue_TimestampValue(
Instant value) {
if (value == null) {
throw new NullPointerException("Null value");
}
this.value = value;
}
@Override
public Instant value() {
return value;
}
@Override
public String toString() {
return "TimestampValue{"
+ "value=" + value
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof TimestampValue) {
TimestampValue that = (TimestampValue) o;
return this.value.equals(that.value());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= value.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy