Class NutritionFactsLabelV1Document
- java.lang.Object
-
- com.mindee.parsing.common.Prediction
-
- com.mindee.product.nutritionfactslabel.NutritionFactsLabelV1Document
-
public class NutritionFactsLabelV1Document extends Prediction
Nutrition Facts Label API version 1.0 document data.
-
-
Field Summary
Fields Modifier and Type Field Description protected NutritionFactsLabelV1AddedSugar
addedSugars
The amount of added sugars in the product.protected NutritionFactsLabelV1Calorie
calories
The amount of calories in the product.protected NutritionFactsLabelV1Cholesterol
cholesterol
The amount of cholesterol in the product.protected NutritionFactsLabelV1DietaryFiber
dietaryFiber
The amount of dietary fiber in the product.protected List<NutritionFactsLabelV1Nutrient>
nutrients
The amount of nutrients in the product.protected NutritionFactsLabelV1Protein
protein
The amount of protein in the product.protected NutritionFactsLabelV1SaturatedFat
saturatedFat
The amount of saturated fat in the product.protected AmountField
servingPerBox
The number of servings in each box of the product.protected NutritionFactsLabelV1ServingSize
servingSize
The size of a single serving of the product.protected NutritionFactsLabelV1Sodium
sodium
The amount of sodium in the product.protected NutritionFactsLabelV1TotalCarbohydrate
totalCarbohydrate
The total amount of carbohydrates in the product.protected NutritionFactsLabelV1TotalFat
totalFat
The total amount of fat in the product.protected NutritionFactsLabelV1TotalSugar
totalSugars
The total amount of sugars in the product.protected NutritionFactsLabelV1TransFat
transFat
The amount of trans fat in the product.
-
Constructor Summary
Constructors Constructor Description NutritionFactsLabelV1Document()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
NutritionFactsLabelV1AddedSugar
getAddedSugars()
The amount of added sugars in the product.NutritionFactsLabelV1Calorie
getCalories()
The amount of calories in the product.NutritionFactsLabelV1Cholesterol
getCholesterol()
The amount of cholesterol in the product.NutritionFactsLabelV1DietaryFiber
getDietaryFiber()
The amount of dietary fiber in the product.List<NutritionFactsLabelV1Nutrient>
getNutrients()
The amount of nutrients in the product.NutritionFactsLabelV1Protein
getProtein()
The amount of protein in the product.NutritionFactsLabelV1SaturatedFat
getSaturatedFat()
The amount of saturated fat in the product.AmountField
getServingPerBox()
The number of servings in each box of the product.NutritionFactsLabelV1ServingSize
getServingSize()
The size of a single serving of the product.NutritionFactsLabelV1Sodium
getSodium()
The amount of sodium in the product.NutritionFactsLabelV1TotalCarbohydrate
getTotalCarbohydrate()
The total amount of carbohydrates in the product.NutritionFactsLabelV1TotalFat
getTotalFat()
The total amount of fat in the product.NutritionFactsLabelV1TotalSugar
getTotalSugars()
The total amount of sugars in the product.NutritionFactsLabelV1TransFat
getTransFat()
The amount of trans fat in the product.int
hashCode()
boolean
isEmpty()
Returnstrue
if there are no predictions values.String
toString()
-
-
-
Field Detail
-
addedSugars
protected NutritionFactsLabelV1AddedSugar addedSugars
The amount of added sugars in the product.
-
calories
protected NutritionFactsLabelV1Calorie calories
The amount of calories in the product.
-
cholesterol
protected NutritionFactsLabelV1Cholesterol cholesterol
The amount of cholesterol in the product.
-
dietaryFiber
protected NutritionFactsLabelV1DietaryFiber dietaryFiber
The amount of dietary fiber in the product.
-
nutrients
protected List<NutritionFactsLabelV1Nutrient> nutrients
The amount of nutrients in the product.
-
protein
protected NutritionFactsLabelV1Protein protein
The amount of protein in the product.
-
saturatedFat
protected NutritionFactsLabelV1SaturatedFat saturatedFat
The amount of saturated fat in the product.
-
servingPerBox
protected AmountField servingPerBox
The number of servings in each box of the product.
-
servingSize
protected NutritionFactsLabelV1ServingSize servingSize
The size of a single serving of the product.
-
sodium
protected NutritionFactsLabelV1Sodium sodium
The amount of sodium in the product.
-
totalCarbohydrate
protected NutritionFactsLabelV1TotalCarbohydrate totalCarbohydrate
The total amount of carbohydrates in the product.
-
totalFat
protected NutritionFactsLabelV1TotalFat totalFat
The total amount of fat in the product.
-
totalSugars
protected NutritionFactsLabelV1TotalSugar totalSugars
The total amount of sugars in the product.
-
transFat
protected NutritionFactsLabelV1TransFat transFat
The amount of trans fat in the product.
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Description copied from class:Prediction
Returnstrue
if there are no predictions values. Accessing prediction values when this istrue
may result in aNullPointerException
- Specified by:
isEmpty
in classPrediction
-
getAddedSugars
public NutritionFactsLabelV1AddedSugar getAddedSugars()
The amount of added sugars in the product.
-
getCalories
public NutritionFactsLabelV1Calorie getCalories()
The amount of calories in the product.
-
getCholesterol
public NutritionFactsLabelV1Cholesterol getCholesterol()
The amount of cholesterol in the product.
-
getDietaryFiber
public NutritionFactsLabelV1DietaryFiber getDietaryFiber()
The amount of dietary fiber in the product.
-
getNutrients
public List<NutritionFactsLabelV1Nutrient> getNutrients()
The amount of nutrients in the product.
-
getProtein
public NutritionFactsLabelV1Protein getProtein()
The amount of protein in the product.
-
getSaturatedFat
public NutritionFactsLabelV1SaturatedFat getSaturatedFat()
The amount of saturated fat in the product.
-
getServingPerBox
public AmountField getServingPerBox()
The number of servings in each box of the product.
-
getServingSize
public NutritionFactsLabelV1ServingSize getServingSize()
The size of a single serving of the product.
-
getSodium
public NutritionFactsLabelV1Sodium getSodium()
The amount of sodium in the product.
-
getTotalCarbohydrate
public NutritionFactsLabelV1TotalCarbohydrate getTotalCarbohydrate()
The total amount of carbohydrates in the product.
-
getTotalFat
public NutritionFactsLabelV1TotalFat getTotalFat()
The total amount of fat in the product.
-
getTotalSugars
public NutritionFactsLabelV1TotalSugar getTotalSugars()
The total amount of sugars in the product.
-
getTransFat
public NutritionFactsLabelV1TransFat getTransFat()
The amount of trans fat in the product.
-
canEqual
protected boolean canEqual(Object other)
-
-