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 aIngredient
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditivesTags
record component.Returns the value of theallergens
record component.Returns the value of theallergensHierarchy
record component.Returns the value of theallergensLc
record component.Returns the value of theallergensTags
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theingredients
record component.Returns the value of theingredientsAnalysis
record component.Returns the value of theingredientsAnalysisTags
record component.int
Returns the value of theingredientsFromOrThatMayBeFromPalmOilN
record component.int
Returns the value of theingredientsFromPalmOilN
record component.Returns the value of theingredientsFromPalmOilTags
record component.Returns the value of theingredientsHierarchy
record component.Returns the value of theingredientsLc
record component.int
Returns the value of theingredientsN
record component.int
Returns the value of theingredientsNonNutritiveSweetenersN
record component.Returns the value of theingredientsNTags
record component.Returns the value of theingredientsOriginalTags
record component.int
Returns the value of theingredientsPercentAnalysis
record component.int
Returns the value of theingredientsSweetenersN
record component.Returns the value of theingredientsTags
record component.Returns the value of theingredientsText
record component.Returns the value of theingredientsTextByLanguage
record component.Returns the value of theingredientsTextWithAllergens
record component.Returns the value of theingredientsTextWithAllergensByLanguage
record component.int
Returns the value of theingredientsThatMayBeFromPalmOilN
record component.Returns the value of theingredientsThatMayBeFromPalmOilTags
record component.int
Returns the value of theingredientsWithSpecifiedPercentN
record component.int
Returns the value of theingredientsWithSpecifiedPercentSum
record component.int
Returns the value of theingredientsWithUnspecifiedPercentN
record component.int
Returns the value of theingredientsWithUnspecifiedPercentSum
record component.int
Returns the value of theknownIngredientsN
record component.origins()
Returns the value of theorigins
record component.Returns the value of theoriginsHierarchy
record component.Returns the value of theoriginsLc
record component.Returns the value of theoriginsTags
record component.final String
toString()
Returns a string representation of this record class.traces()
Returns the value of thetraces
record component.Returns the value of thetracesHierarchy
record component.tracesLc()
Returns the value of thetracesLc
record component.Returns the value of thetracesTags
record component.int
Returns the value of theunknownIngredientsN
record 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 aIngredient
record class.- Parameters:
additivesTags
- the value for theadditivesTags
record componentallergens
- the value for theallergens
record componentallergensLc
- the value for theallergensLc
record componentallergensHierarchy
- the value for theallergensHierarchy
record componentallergensTags
- the value for theallergensTags
record componentingredients
- the value for theingredients
record componentingredientsAnalysis
- the value for theingredientsAnalysis
record componentingredientsAnalysisTags
- the value for theingredientsAnalysisTags
record componentingredientsFromOrThatMayBeFromPalmOilN
- the value for theingredientsFromOrThatMayBeFromPalmOilN
record componentingredientsFromPalmOilN
- the value for theingredientsFromPalmOilN
record componentingredientsFromPalmOilTags
- the value for theingredientsFromPalmOilTags
record componentingredientsHierarchy
- the value for theingredientsHierarchy
record componentingredientsN
- the value for theingredientsN
record componentingredientsNTags
- the value for theingredientsNTags
record componentingredientsOriginalTags
- the value for theingredientsOriginalTags
record componentingredientsPercentAnalysis
- the value for theingredientsPercentAnalysis
record componentingredientsSweetenersN
- the value for theingredientsSweetenersN
record componentingredientsNonNutritiveSweetenersN
- the value for theingredientsNonNutritiveSweetenersN
record componentingredientsTags
- the value for theingredientsTags
record componentingredientsLc
- the value for theingredientsLc
record componentingredientsText
- the value for theingredientsText
record componentingredientsTextWithAllergens
- the value for theingredientsTextWithAllergens
record componentingredientsThatMayBeFromPalmOilN
- the value for theingredientsThatMayBeFromPalmOilN
record componentingredientsThatMayBeFromPalmOilTags
- the value for theingredientsThatMayBeFromPalmOilTags
record componentingredientsWithSpecifiedPercentN
- the value for theingredientsWithSpecifiedPercentN
record componentingredientsWithSpecifiedPercentSum
- the value for theingredientsWithSpecifiedPercentSum
record componentingredientsWithUnspecifiedPercentN
- the value for theingredientsWithUnspecifiedPercentN
record componentingredientsWithUnspecifiedPercentSum
- the value for theingredientsWithUnspecifiedPercentSum
record componentknownIngredientsN
- the value for theknownIngredientsN
record componentorigins
- the value for theorigins
record componentoriginsHierarchy
- the value for theoriginsHierarchy
record componentoriginsLc
- the value for theoriginsLc
record componentoriginsTags
- the value for theoriginsTags
record componenttraces
- the value for thetraces
record componenttracesHierarchy
- the value for thetracesHierarchy
record componenttracesLc
- the value for thetracesLc
record componenttracesTags
- the value for thetracesTags
record componentunknownIngredientsN
- the value for theunknownIngredientsN
record componentingredientsTextByLanguage
- the value for theingredientsTextByLanguage
record componentingredientsTextWithAllergensByLanguage
- the value for theingredientsTextWithAllergensByLanguage
record 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 theadditivesTags
record component.- Returns:
- the value of the
additivesTags
record component
-
allergens
Returns the value of theallergens
record component.- Returns:
- the value of the
allergens
record component
-
allergensLc
Returns the value of theallergensLc
record component.- Returns:
- the value of the
allergensLc
record component
-
allergensHierarchy
Returns the value of theallergensHierarchy
record component.- Returns:
- the value of the
allergensHierarchy
record component
-
allergensTags
Returns the value of theallergensTags
record component.- Returns:
- the value of the
allergensTags
record component
-
ingredients
Returns the value of theingredients
record component.- Returns:
- the value of the
ingredients
record component
-
ingredientsAnalysis
Returns the value of theingredientsAnalysis
record component.- Returns:
- the value of the
ingredientsAnalysis
record component
-
ingredientsAnalysisTags
Returns the value of theingredientsAnalysisTags
record component.- Returns:
- the value of the
ingredientsAnalysisTags
record component
-
ingredientsFromOrThatMayBeFromPalmOilN
public int ingredientsFromOrThatMayBeFromPalmOilN()Returns the value of theingredientsFromOrThatMayBeFromPalmOilN
record component.- Returns:
- the value of the
ingredientsFromOrThatMayBeFromPalmOilN
record component
-
ingredientsFromPalmOilN
public int ingredientsFromPalmOilN()Returns the value of theingredientsFromPalmOilN
record component.- Returns:
- the value of the
ingredientsFromPalmOilN
record component
-
ingredientsFromPalmOilTags
Returns the value of theingredientsFromPalmOilTags
record component.- Returns:
- the value of the
ingredientsFromPalmOilTags
record component
-
ingredientsHierarchy
Returns the value of theingredientsHierarchy
record component.- Returns:
- the value of the
ingredientsHierarchy
record component
-
ingredientsN
public int ingredientsN()Returns the value of theingredientsN
record component.- Returns:
- the value of the
ingredientsN
record component
-
ingredientsNTags
Returns the value of theingredientsNTags
record component.- Returns:
- the value of the
ingredientsNTags
record component
-
ingredientsOriginalTags
Returns the value of theingredientsOriginalTags
record component.- Returns:
- the value of the
ingredientsOriginalTags
record component
-
ingredientsPercentAnalysis
public int ingredientsPercentAnalysis()Returns the value of theingredientsPercentAnalysis
record component.- Returns:
- the value of the
ingredientsPercentAnalysis
record component
-
ingredientsSweetenersN
public int ingredientsSweetenersN()Returns the value of theingredientsSweetenersN
record component.- Returns:
- the value of the
ingredientsSweetenersN
record component
-
ingredientsNonNutritiveSweetenersN
public int ingredientsNonNutritiveSweetenersN()Returns the value of theingredientsNonNutritiveSweetenersN
record component.- Returns:
- the value of the
ingredientsNonNutritiveSweetenersN
record component
-
ingredientsTags
Returns the value of theingredientsTags
record component.- Returns:
- the value of the
ingredientsTags
record component
-
ingredientsLc
Returns the value of theingredientsLc
record component.- Returns:
- the value of the
ingredientsLc
record component
-
ingredientsText
Returns the value of theingredientsText
record component.- Returns:
- the value of the
ingredientsText
record component
-
ingredientsTextWithAllergens
Returns the value of theingredientsTextWithAllergens
record component.- Returns:
- the value of the
ingredientsTextWithAllergens
record component
-
ingredientsThatMayBeFromPalmOilN
public int ingredientsThatMayBeFromPalmOilN()Returns the value of theingredientsThatMayBeFromPalmOilN
record component.- Returns:
- the value of the
ingredientsThatMayBeFromPalmOilN
record component
-
ingredientsThatMayBeFromPalmOilTags
Returns the value of theingredientsThatMayBeFromPalmOilTags
record component.- Returns:
- the value of the
ingredientsThatMayBeFromPalmOilTags
record component
-
ingredientsWithSpecifiedPercentN
public int ingredientsWithSpecifiedPercentN()Returns the value of theingredientsWithSpecifiedPercentN
record component.- Returns:
- the value of the
ingredientsWithSpecifiedPercentN
record component
-
ingredientsWithSpecifiedPercentSum
public int ingredientsWithSpecifiedPercentSum()Returns the value of theingredientsWithSpecifiedPercentSum
record component.- Returns:
- the value of the
ingredientsWithSpecifiedPercentSum
record component
-
ingredientsWithUnspecifiedPercentN
public int ingredientsWithUnspecifiedPercentN()Returns the value of theingredientsWithUnspecifiedPercentN
record component.- Returns:
- the value of the
ingredientsWithUnspecifiedPercentN
record component
-
ingredientsWithUnspecifiedPercentSum
public int ingredientsWithUnspecifiedPercentSum()Returns the value of theingredientsWithUnspecifiedPercentSum
record component.- Returns:
- the value of the
ingredientsWithUnspecifiedPercentSum
record component
-
knownIngredientsN
public int knownIngredientsN()Returns the value of theknownIngredientsN
record component.- Returns:
- the value of the
knownIngredientsN
record component
-
origins
Returns the value of theorigins
record component.- Returns:
- the value of the
origins
record component
-
originsHierarchy
Returns the value of theoriginsHierarchy
record component.- Returns:
- the value of the
originsHierarchy
record component
-
originsLc
Returns the value of theoriginsLc
record component.- Returns:
- the value of the
originsLc
record component
-
originsTags
Returns the value of theoriginsTags
record component.- Returns:
- the value of the
originsTags
record component
-
traces
Returns the value of thetraces
record component.- Returns:
- the value of the
traces
record component
-
tracesHierarchy
Returns the value of thetracesHierarchy
record component.- Returns:
- the value of the
tracesHierarchy
record component
-
tracesLc
Returns the value of thetracesLc
record component.- Returns:
- the value of the
tracesLc
record component
-
tracesTags
Returns the value of thetracesTags
record component.- Returns:
- the value of the
tracesTags
record component
-
unknownIngredientsN
public int unknownIngredientsN()Returns the value of theunknownIngredientsN
record component.- Returns:
- the value of the
unknownIngredientsN
record component
-
ingredientsTextByLanguage
Returns the value of theingredientsTextByLanguage
record component.- Returns:
- the value of the
ingredientsTextByLanguage
record component
-
ingredientsTextWithAllergensByLanguage
Returns the value of theingredientsTextWithAllergensByLanguage
record component.- Returns:
- the value of the
ingredientsTextWithAllergensByLanguage
record component
-