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 ExtrasgetExtras()Optional information.OrientationgetOrientation()The orientation which was applied from the original page.intgetPageId()The id of the page.TPagePredictiongetPrediction()The prediction model type.booleanisPredictionEmpty()Returnstrueif there are no predictions in this page.StringtoString()
-
-
-
Method Detail
-
isPredictionEmpty
public boolean isPredictionEmpty()
Returnstrueif there are no predictions in this page. Accessing prediction values when this istruemay 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.
-
-