com.spotify.zoltar.AutoValue_Prediction Maven / Gradle / Ivy
package com.spotify.zoltar;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Prediction extends Prediction {
private final InputT input;
private final ValueT value;
AutoValue_Prediction(
InputT input,
ValueT value) {
if (input == null) {
throw new NullPointerException("Null input");
}
this.input = input;
if (value == null) {
throw new NullPointerException("Null value");
}
this.value = value;
}
@Override
public InputT input() {
return input;
}
@Override
public ValueT value() {
return value;
}
@Override
public String toString() {
return "Prediction{"
+ "input=" + input + ", "
+ "value=" + value
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Prediction) {
Prediction, ?> that = (Prediction, ?>) o;
return (this.input.equals(that.input()))
&& (this.value.equals(that.value()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.input.hashCode();
h *= 1000003;
h ^= this.value.hashCode();
return h;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy