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 boolean
canEqual(Object other)
boolean
equals(Object o)
Document<T>
getDocument()
Set the prediction model used to parse the document.int
hashCode()
void
setDocument(Document<T> document)
Set the prediction model used to parse the document.String
toString()
-
Methods inherited from class com.mindee.parsing.common.ApiResponse
getApiRequest, getRawResponse, setApiRequest, setRawResponse
-
-
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in 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:
equals
in classApiResponse
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classApiResponse
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classApiResponse
-
-