Package com.mindee.parsing.common
Class Page<TPagePrediction>
- java.lang.Object
-
- com.mindee.parsing.common.Page<TPagePrediction>
-
- Type Parameters:
TPagePrediction
- The prediction model type.
public class Page<TPagePrediction> extends Object
Define a page in the parsed document.
-
-
Constructor Summary
Constructors Constructor Description Page()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Extras
getExtras()
Optional information.Orientation
getOrientation()
The orientation which was applied from the original page.int
getPageId()
The id of the page.TPagePrediction
getPrediction()
The prediction model type.boolean
isPredictionEmpty()
Returnstrue
if there are no predictions in this page.String
toString()
-
-
-
Method Detail
-
isPredictionEmpty
public boolean isPredictionEmpty()
Returnstrue
if there are no predictions in this page. Accessing prediction values when this istrue
may result in aNullPointerException
-
getPageId
public int getPageId()
The id of the page. It starts at 0.
-
getExtras
public Extras getExtras()
Optional information.
-
getOrientation
public Orientation getOrientation()
The orientation which was applied from the original page.
-
getPrediction
public TPagePrediction getPrediction()
The prediction model type.
-
-