Package com.spotify.zoltar
Class Prediction<InputT,ValueT>
- java.lang.Object
-
- com.spotify.zoltar.Prediction<InputT,ValueT>
-
- All Implemented Interfaces:
Serializable
public abstract class Prediction<InputT,ValueT> extends Object implements Serializable
Value class for prediction result. Holds both the original input and the result of the prediction for the input.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Prediction()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <InputT,ValueT>
Prediction<InputT,ValueT>create(InputT input, ValueT value)
Create a new prediction result.abstract InputT
input()
Input to the prediction.abstract ValueT
value()
Result of the prediction.
-
-
-
Method Detail
-
input
public abstract InputT input()
Input to the prediction.
-
value
public abstract ValueT value()
Result of the prediction.
-
create
public static <InputT,ValueT> Prediction<InputT,ValueT> create(InputT input, ValueT value)
Create a new prediction result.
-
-