Record Class Ingredient
java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.dtos.Ingredient
public record Ingredient(List<String> additivesTags, String allergens, String allergensLc, List<String> allergensHierarchy, List<String> allergensTags, List<Ingredient> ingredients, IngredientsAnalysis ingredientsAnalysis, List<String> ingredientsAnalysisTags, int ingredientsFromOrThatMayBeFromPalmOilN, int ingredientsFromPalmOilN, List<String> ingredientsFromPalmOilTags, List<String> ingredientsHierarchy, int ingredientsN, List<String> ingredientsNTags, List<String> ingredientsOriginalTags, int ingredientsPercentAnalysis, int ingredientsSweetenersN, int ingredientsNonNutritiveSweetenersN, List<String> ingredientsTags, String ingredientsLc, String ingredientsText, String ingredientsTextWithAllergens, int ingredientsThatMayBeFromPalmOilN, List<String> ingredientsThatMayBeFromPalmOilTags, int ingredientsWithSpecifiedPercentN, int ingredientsWithSpecifiedPercentSum, int ingredientsWithUnspecifiedPercentN, int ingredientsWithUnspecifiedPercentSum, int knownIngredientsN, String origins, List<String> originsHierarchy, String originsLc, List<String> originsTags, String traces, List<Object> tracesHierarchy, String tracesLc, List<Object> tracesTags, int unknownIngredientsN, Map<String,String> ingredientsTextByLanguage, Map<String,String> ingredientsTextWithAllergensByLanguage)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionIngredient(List<String> additivesTags, String allergens, String allergensLc, List<String> allergensHierarchy, List<String> allergensTags, List<Ingredient> ingredients, IngredientsAnalysis ingredientsAnalysis, List<String> ingredientsAnalysisTags, int ingredientsFromOrThatMayBeFromPalmOilN, int ingredientsFromPalmOilN, List<String> ingredientsFromPalmOilTags, List<String> ingredientsHierarchy, int ingredientsN, List<String> ingredientsNTags, List<String> ingredientsOriginalTags, int ingredientsPercentAnalysis, int ingredientsSweetenersN, int ingredientsNonNutritiveSweetenersN, List<String> ingredientsTags, String ingredientsLc, String ingredientsText, String ingredientsTextWithAllergens, int ingredientsThatMayBeFromPalmOilN, List<String> ingredientsThatMayBeFromPalmOilTags, int ingredientsWithSpecifiedPercentN, int ingredientsWithSpecifiedPercentSum, int ingredientsWithUnspecifiedPercentN, int ingredientsWithUnspecifiedPercentSum, int knownIngredientsN, String origins, List<String> originsHierarchy, String originsLc, List<String> originsTags, String traces, List<Object> tracesHierarchy, String tracesLc, List<Object> tracesTags, int unknownIngredientsN, Map<String, String> ingredientsTextByLanguage, Map<String, String> ingredientsTextWithAllergensByLanguage) Creates an instance of aIngredientrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditivesTagsrecord component.Returns the value of theallergensrecord component.Returns the value of theallergensHierarchyrecord component.Returns the value of theallergensLcrecord component.Returns the value of theallergensTagsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theingredientsrecord component.Returns the value of theingredientsAnalysisrecord component.Returns the value of theingredientsAnalysisTagsrecord component.intReturns the value of theingredientsFromOrThatMayBeFromPalmOilNrecord component.intReturns the value of theingredientsFromPalmOilNrecord component.Returns the value of theingredientsFromPalmOilTagsrecord component.Returns the value of theingredientsHierarchyrecord component.Returns the value of theingredientsLcrecord component.intReturns the value of theingredientsNrecord component.intReturns the value of theingredientsNonNutritiveSweetenersNrecord component.Returns the value of theingredientsNTagsrecord component.Returns the value of theingredientsOriginalTagsrecord component.intReturns the value of theingredientsPercentAnalysisrecord component.intReturns the value of theingredientsSweetenersNrecord component.Returns the value of theingredientsTagsrecord component.Returns the value of theingredientsTextrecord component.Returns the value of theingredientsTextByLanguagerecord component.Returns the value of theingredientsTextWithAllergensrecord component.Returns the value of theingredientsTextWithAllergensByLanguagerecord component.intReturns the value of theingredientsThatMayBeFromPalmOilNrecord component.Returns the value of theingredientsThatMayBeFromPalmOilTagsrecord component.intReturns the value of theingredientsWithSpecifiedPercentNrecord component.intReturns the value of theingredientsWithSpecifiedPercentSumrecord component.intReturns the value of theingredientsWithUnspecifiedPercentNrecord component.intReturns the value of theingredientsWithUnspecifiedPercentSumrecord component.intReturns the value of theknownIngredientsNrecord component.origins()Returns the value of theoriginsrecord component.Returns the value of theoriginsHierarchyrecord component.Returns the value of theoriginsLcrecord component.Returns the value of theoriginsTagsrecord component.final StringtoString()Returns a string representation of this record class.traces()Returns the value of thetracesrecord component.Returns the value of thetracesHierarchyrecord component.tracesLc()Returns the value of thetracesLcrecord component.Returns the value of thetracesTagsrecord component.intReturns the value of theunknownIngredientsNrecord component.
-
Constructor Details
-
Ingredient
public Ingredient(List<String> additivesTags, String allergens, String allergensLc, List<String> allergensHierarchy, List<String> allergensTags, List<Ingredient> ingredients, IngredientsAnalysis ingredientsAnalysis, List<String> ingredientsAnalysisTags, int ingredientsFromOrThatMayBeFromPalmOilN, int ingredientsFromPalmOilN, List<String> ingredientsFromPalmOilTags, List<String> ingredientsHierarchy, int ingredientsN, List<String> ingredientsNTags, List<String> ingredientsOriginalTags, int ingredientsPercentAnalysis, int ingredientsSweetenersN, int ingredientsNonNutritiveSweetenersN, List<String> ingredientsTags, String ingredientsLc, String ingredientsText, String ingredientsTextWithAllergens, int ingredientsThatMayBeFromPalmOilN, List<String> ingredientsThatMayBeFromPalmOilTags, int ingredientsWithSpecifiedPercentN, int ingredientsWithSpecifiedPercentSum, int ingredientsWithUnspecifiedPercentN, int ingredientsWithUnspecifiedPercentSum, int knownIngredientsN, String origins, List<String> originsHierarchy, String originsLc, List<String> originsTags, String traces, List<Object> tracesHierarchy, String tracesLc, List<Object> tracesTags, int unknownIngredientsN, Map<String, String> ingredientsTextByLanguage, Map<String, String> ingredientsTextWithAllergensByLanguage) Creates an instance of aIngredientrecord class.- Parameters:
additivesTags- the value for theadditivesTagsrecord componentallergens- the value for theallergensrecord componentallergensLc- the value for theallergensLcrecord componentallergensHierarchy- the value for theallergensHierarchyrecord componentallergensTags- the value for theallergensTagsrecord componentingredients- the value for theingredientsrecord componentingredientsAnalysis- the value for theingredientsAnalysisrecord componentingredientsAnalysisTags- the value for theingredientsAnalysisTagsrecord componentingredientsFromOrThatMayBeFromPalmOilN- the value for theingredientsFromOrThatMayBeFromPalmOilNrecord componentingredientsFromPalmOilN- the value for theingredientsFromPalmOilNrecord componentingredientsFromPalmOilTags- the value for theingredientsFromPalmOilTagsrecord componentingredientsHierarchy- the value for theingredientsHierarchyrecord componentingredientsN- the value for theingredientsNrecord componentingredientsNTags- the value for theingredientsNTagsrecord componentingredientsOriginalTags- the value for theingredientsOriginalTagsrecord componentingredientsPercentAnalysis- the value for theingredientsPercentAnalysisrecord componentingredientsSweetenersN- the value for theingredientsSweetenersNrecord componentingredientsNonNutritiveSweetenersN- the value for theingredientsNonNutritiveSweetenersNrecord componentingredientsTags- the value for theingredientsTagsrecord componentingredientsLc- the value for theingredientsLcrecord componentingredientsText- the value for theingredientsTextrecord componentingredientsTextWithAllergens- the value for theingredientsTextWithAllergensrecord componentingredientsThatMayBeFromPalmOilN- the value for theingredientsThatMayBeFromPalmOilNrecord componentingredientsThatMayBeFromPalmOilTags- the value for theingredientsThatMayBeFromPalmOilTagsrecord componentingredientsWithSpecifiedPercentN- the value for theingredientsWithSpecifiedPercentNrecord componentingredientsWithSpecifiedPercentSum- the value for theingredientsWithSpecifiedPercentSumrecord componentingredientsWithUnspecifiedPercentN- the value for theingredientsWithUnspecifiedPercentNrecord componentingredientsWithUnspecifiedPercentSum- the value for theingredientsWithUnspecifiedPercentSumrecord componentknownIngredientsN- the value for theknownIngredientsNrecord componentorigins- the value for theoriginsrecord componentoriginsHierarchy- the value for theoriginsHierarchyrecord componentoriginsLc- the value for theoriginsLcrecord componentoriginsTags- the value for theoriginsTagsrecord componenttraces- the value for thetracesrecord componenttracesHierarchy- the value for thetracesHierarchyrecord componenttracesLc- the value for thetracesLcrecord componenttracesTags- the value for thetracesTagsrecord componentunknownIngredientsN- the value for theunknownIngredientsNrecord componentingredientsTextByLanguage- the value for theingredientsTextByLanguagerecord componentingredientsTextWithAllergensByLanguage- the value for theingredientsTextWithAllergensByLanguagerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
additivesTags
Returns the value of theadditivesTagsrecord component.- Returns:
- the value of the
additivesTagsrecord component
-
allergens
Returns the value of theallergensrecord component.- Returns:
- the value of the
allergensrecord component
-
allergensLc
Returns the value of theallergensLcrecord component.- Returns:
- the value of the
allergensLcrecord component
-
allergensHierarchy
Returns the value of theallergensHierarchyrecord component.- Returns:
- the value of the
allergensHierarchyrecord component
-
allergensTags
Returns the value of theallergensTagsrecord component.- Returns:
- the value of the
allergensTagsrecord component
-
ingredients
Returns the value of theingredientsrecord component.- Returns:
- the value of the
ingredientsrecord component
-
ingredientsAnalysis
Returns the value of theingredientsAnalysisrecord component.- Returns:
- the value of the
ingredientsAnalysisrecord component
-
ingredientsAnalysisTags
Returns the value of theingredientsAnalysisTagsrecord component.- Returns:
- the value of the
ingredientsAnalysisTagsrecord component
-
ingredientsFromOrThatMayBeFromPalmOilN
public int ingredientsFromOrThatMayBeFromPalmOilN()Returns the value of theingredientsFromOrThatMayBeFromPalmOilNrecord component.- Returns:
- the value of the
ingredientsFromOrThatMayBeFromPalmOilNrecord component
-
ingredientsFromPalmOilN
public int ingredientsFromPalmOilN()Returns the value of theingredientsFromPalmOilNrecord component.- Returns:
- the value of the
ingredientsFromPalmOilNrecord component
-
ingredientsFromPalmOilTags
Returns the value of theingredientsFromPalmOilTagsrecord component.- Returns:
- the value of the
ingredientsFromPalmOilTagsrecord component
-
ingredientsHierarchy
Returns the value of theingredientsHierarchyrecord component.- Returns:
- the value of the
ingredientsHierarchyrecord component
-
ingredientsN
public int ingredientsN()Returns the value of theingredientsNrecord component.- Returns:
- the value of the
ingredientsNrecord component
-
ingredientsNTags
Returns the value of theingredientsNTagsrecord component.- Returns:
- the value of the
ingredientsNTagsrecord component
-
ingredientsOriginalTags
Returns the value of theingredientsOriginalTagsrecord component.- Returns:
- the value of the
ingredientsOriginalTagsrecord component
-
ingredientsPercentAnalysis
public int ingredientsPercentAnalysis()Returns the value of theingredientsPercentAnalysisrecord component.- Returns:
- the value of the
ingredientsPercentAnalysisrecord component
-
ingredientsSweetenersN
public int ingredientsSweetenersN()Returns the value of theingredientsSweetenersNrecord component.- Returns:
- the value of the
ingredientsSweetenersNrecord component
-
ingredientsNonNutritiveSweetenersN
public int ingredientsNonNutritiveSweetenersN()Returns the value of theingredientsNonNutritiveSweetenersNrecord component.- Returns:
- the value of the
ingredientsNonNutritiveSweetenersNrecord component
-
ingredientsTags
Returns the value of theingredientsTagsrecord component.- Returns:
- the value of the
ingredientsTagsrecord component
-
ingredientsLc
Returns the value of theingredientsLcrecord component.- Returns:
- the value of the
ingredientsLcrecord component
-
ingredientsText
Returns the value of theingredientsTextrecord component.- Returns:
- the value of the
ingredientsTextrecord component
-
ingredientsTextWithAllergens
Returns the value of theingredientsTextWithAllergensrecord component.- Returns:
- the value of the
ingredientsTextWithAllergensrecord component
-
ingredientsThatMayBeFromPalmOilN
public int ingredientsThatMayBeFromPalmOilN()Returns the value of theingredientsThatMayBeFromPalmOilNrecord component.- Returns:
- the value of the
ingredientsThatMayBeFromPalmOilNrecord component
-
ingredientsThatMayBeFromPalmOilTags
Returns the value of theingredientsThatMayBeFromPalmOilTagsrecord component.- Returns:
- the value of the
ingredientsThatMayBeFromPalmOilTagsrecord component
-
ingredientsWithSpecifiedPercentN
public int ingredientsWithSpecifiedPercentN()Returns the value of theingredientsWithSpecifiedPercentNrecord component.- Returns:
- the value of the
ingredientsWithSpecifiedPercentNrecord component
-
ingredientsWithSpecifiedPercentSum
public int ingredientsWithSpecifiedPercentSum()Returns the value of theingredientsWithSpecifiedPercentSumrecord component.- Returns:
- the value of the
ingredientsWithSpecifiedPercentSumrecord component
-
ingredientsWithUnspecifiedPercentN
public int ingredientsWithUnspecifiedPercentN()Returns the value of theingredientsWithUnspecifiedPercentNrecord component.- Returns:
- the value of the
ingredientsWithUnspecifiedPercentNrecord component
-
ingredientsWithUnspecifiedPercentSum
public int ingredientsWithUnspecifiedPercentSum()Returns the value of theingredientsWithUnspecifiedPercentSumrecord component.- Returns:
- the value of the
ingredientsWithUnspecifiedPercentSumrecord component
-
knownIngredientsN
public int knownIngredientsN()Returns the value of theknownIngredientsNrecord component.- Returns:
- the value of the
knownIngredientsNrecord component
-
origins
Returns the value of theoriginsrecord component.- Returns:
- the value of the
originsrecord component
-
originsHierarchy
Returns the value of theoriginsHierarchyrecord component.- Returns:
- the value of the
originsHierarchyrecord component
-
originsLc
Returns the value of theoriginsLcrecord component.- Returns:
- the value of the
originsLcrecord component
-
originsTags
Returns the value of theoriginsTagsrecord component.- Returns:
- the value of the
originsTagsrecord component
-
traces
Returns the value of thetracesrecord component.- Returns:
- the value of the
tracesrecord component
-
tracesHierarchy
Returns the value of thetracesHierarchyrecord component.- Returns:
- the value of the
tracesHierarchyrecord component
-
tracesLc
Returns the value of thetracesLcrecord component.- Returns:
- the value of the
tracesLcrecord component
-
tracesTags
Returns the value of thetracesTagsrecord component.- Returns:
- the value of the
tracesTagsrecord component
-
unknownIngredientsN
public int unknownIngredientsN()Returns the value of theunknownIngredientsNrecord component.- Returns:
- the value of the
unknownIngredientsNrecord component
-
ingredientsTextByLanguage
Returns the value of theingredientsTextByLanguagerecord component.- Returns:
- the value of the
ingredientsTextByLanguagerecord component
-
ingredientsTextWithAllergensByLanguage
Returns the value of theingredientsTextWithAllergensByLanguagerecord component.- Returns:
- the value of the
ingredientsTextWithAllergensByLanguagerecord component
-