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 boolean
canEqual(Object other)
boolean
equals(Object o)
Optional<Document<T>>
getDocument()
Get the document optional.Document<T>
getDocumentObj()
Get the document object if it is present.Job
getJob()
Details for the submitted job.int
hashCode()
void
setDocument(Document<T> document)
Set the prediction model used to parse the document.void
setJob(Job job)
Details for the submitted job.String
toString()
-
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:
toString
in 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:
equals
in classApiResponse
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classApiResponse
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classApiResponse
-
-