Package com.mindee.parsing.common
Class AsyncPredictResponse<T extends Inference>
- java.lang.Object
-
- com.mindee.parsing.common.ApiResponse
-
- com.mindee.parsing.common.AsyncPredictResponse<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 AsyncPredictResponse<T extends Inference> extends ApiResponse
Represent a `predict` response from Mindee API.
-
-
Constructor Summary
Constructors Constructor Description AsyncPredictResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)Optional<Document<T>>getDocument()Get the document optional.Document<T>getDocumentObj()Get the document object if it is present.JobgetJob()Details for the submitted job.inthashCode()voidsetDocument(Document<T> document)Set the prediction model used to parse the document.voidsetJob(Job job)Details for the submitted job.StringtoString()-
Methods inherited from class com.mindee.parsing.common.ApiResponse
getApiRequest, getRawResponse, setApiRequest, setRawResponse
-
-
-
-
Method Detail
-
getDocumentObj
public Document<T> getDocumentObj()
Get the document object if it is present. Shortcut for when the document optional is known to be present.
-
toString
public String toString()
- Overrides:
toStringin classApiResponse
-
getJob
public Job getJob()
Details for the submitted job.
-
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.
-
setJob
public void setJob(Job job)
Details for the submitted job.
-
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
-
-