com.spotify.zoltar.xgboost.AutoValue_XGBoostModel Maven / Gradle / Ivy
package com.spotify.zoltar.xgboost;
import com.spotify.zoltar.Model;
import javax.annotation.Generated;
import ml.dmlc.xgboost4j.java.Booster;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_XGBoostModel extends XGBoostModel {
private final Model.Id id;
private final Booster instance;
AutoValue_XGBoostModel(
Model.Id id,
Booster instance) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (instance == null) {
throw new NullPointerException("Null instance");
}
this.instance = instance;
}
@Override
public Model.Id id() {
return id;
}
@Override
public Booster instance() {
return instance;
}
@Override
public String toString() {
return "XGBoostModel{"
+ "id=" + id + ", "
+ "instance=" + instance
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof XGBoostModel) {
XGBoostModel that = (XGBoostModel) o;
return (this.id.equals(that.id()))
&& (this.instance.equals(that.instance()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= instance.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy