Package com.mindee.parsing.common
Class PredictResponse<T extends Inference>
- java.lang.Object
-
- com.mindee.parsing.common.ApiResponse
-
- com.mindee.parsing.common.PredictResponse<T>
-
- Type Parameters:
T- Set the prediction model used to parse the document. The response object will be instantiated based on this parameter.
public class PredictResponse<T extends Inference> extends ApiResponse
Represent a `predict` response from Mindee API.
-
-
Constructor Summary
Constructors Constructor Description PredictResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)Document<T>getDocument()Set the prediction model used to parse the document.inthashCode()voidsetDocument(Document<T> document)Set the prediction model used to parse the document.StringtoString()-
Methods inherited from class com.mindee.parsing.common.ApiResponse
getApiRequest, getRawResponse, setApiRequest, setRawResponse
-
-
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classApiResponse
-
getDocument
public Document<T> getDocument()
Set the prediction model used to parse the document. The response object will be instantiated based on this parameter.
-
setDocument
public void setDocument(Document<T> document)
Set the prediction model used to parse the document. The response object will be instantiated based on this parameter.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classApiResponse
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classApiResponse
-
hashCode
public int hashCode()
- Overrides:
hashCodein classApiResponse
-
-