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 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 a Ingredient record class.
      Parameters:
      additivesTags - the value for the additivesTags record component
      allergens - the value for the allergens record component
      allergensLc - the value for the allergensLc record component
      allergensHierarchy - the value for the allergensHierarchy record component
      allergensTags - the value for the allergensTags record component
      ingredients - the value for the ingredients record component
      ingredientsAnalysis - the value for the ingredientsAnalysis record component
      ingredientsAnalysisTags - the value for the ingredientsAnalysisTags record component
      ingredientsFromOrThatMayBeFromPalmOilN - the value for the ingredientsFromOrThatMayBeFromPalmOilN record component
      ingredientsFromPalmOilN - the value for the ingredientsFromPalmOilN record component
      ingredientsFromPalmOilTags - the value for the ingredientsFromPalmOilTags record component
      ingredientsHierarchy - the value for the ingredientsHierarchy record component
      ingredientsN - the value for the ingredientsN record component
      ingredientsNTags - the value for the ingredientsNTags record component
      ingredientsOriginalTags - the value for the ingredientsOriginalTags record component
      ingredientsPercentAnalysis - the value for the ingredientsPercentAnalysis record component
      ingredientsSweetenersN - the value for the ingredientsSweetenersN record component
      ingredientsNonNutritiveSweetenersN - the value for the ingredientsNonNutritiveSweetenersN record component
      ingredientsTags - the value for the ingredientsTags record component
      ingredientsLc - the value for the ingredientsLc record component
      ingredientsText - the value for the ingredientsText record component
      ingredientsTextWithAllergens - the value for the ingredientsTextWithAllergens record component
      ingredientsThatMayBeFromPalmOilN - the value for the ingredientsThatMayBeFromPalmOilN record component
      ingredientsThatMayBeFromPalmOilTags - the value for the ingredientsThatMayBeFromPalmOilTags record component
      ingredientsWithSpecifiedPercentN - the value for the ingredientsWithSpecifiedPercentN record component
      ingredientsWithSpecifiedPercentSum - the value for the ingredientsWithSpecifiedPercentSum record component
      ingredientsWithUnspecifiedPercentN - the value for the ingredientsWithUnspecifiedPercentN record component
      ingredientsWithUnspecifiedPercentSum - the value for the ingredientsWithUnspecifiedPercentSum record component
      knownIngredientsN - the value for the knownIngredientsN record component
      origins - the value for the origins record component
      originsHierarchy - the value for the originsHierarchy record component
      originsLc - the value for the originsLc record component
      originsTags - the value for the originsTags record component
      traces - the value for the traces record component
      tracesHierarchy - the value for the tracesHierarchy record component
      tracesLc - the value for the tracesLc record component
      tracesTags - the value for the tracesTags record component
      unknownIngredientsN - the value for the unknownIngredientsN record component
      ingredientsTextByLanguage - the value for the ingredientsTextByLanguage record component
      ingredientsTextWithAllergensByLanguage - the value for the ingredientsTextWithAllergensByLanguage record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • additivesTags

      public List<String> additivesTags()
      Returns the value of the additivesTags record component.
      Returns:
      the value of the additivesTags record component
    • allergens

      public String allergens()
      Returns the value of the allergens record component.
      Returns:
      the value of the allergens record component
    • allergensLc

      public String allergensLc()
      Returns the value of the allergensLc record component.
      Returns:
      the value of the allergensLc record component
    • allergensHierarchy

      public List<String> allergensHierarchy()
      Returns the value of the allergensHierarchy record component.
      Returns:
      the value of the allergensHierarchy record component
    • allergensTags

      public List<String> allergensTags()
      Returns the value of the allergensTags record component.
      Returns:
      the value of the allergensTags record component
    • ingredients

      public List<Ingredient> ingredients()
      Returns the value of the ingredients record component.
      Returns:
      the value of the ingredients record component
    • ingredientsAnalysis

      public IngredientsAnalysis ingredientsAnalysis()
      Returns the value of the ingredientsAnalysis record component.
      Returns:
      the value of the ingredientsAnalysis record component
    • ingredientsAnalysisTags

      public List<String> ingredientsAnalysisTags()
      Returns the value of the ingredientsAnalysisTags record component.
      Returns:
      the value of the ingredientsAnalysisTags record component
    • ingredientsFromOrThatMayBeFromPalmOilN

      public int ingredientsFromOrThatMayBeFromPalmOilN()
      Returns the value of the ingredientsFromOrThatMayBeFromPalmOilN record component.
      Returns:
      the value of the ingredientsFromOrThatMayBeFromPalmOilN record component
    • ingredientsFromPalmOilN

      public int ingredientsFromPalmOilN()
      Returns the value of the ingredientsFromPalmOilN record component.
      Returns:
      the value of the ingredientsFromPalmOilN record component
    • ingredientsFromPalmOilTags

      public List<String> ingredientsFromPalmOilTags()
      Returns the value of the ingredientsFromPalmOilTags record component.
      Returns:
      the value of the ingredientsFromPalmOilTags record component
    • ingredientsHierarchy

      public List<String> ingredientsHierarchy()
      Returns the value of the ingredientsHierarchy record component.
      Returns:
      the value of the ingredientsHierarchy record component
    • ingredientsN

      public int ingredientsN()
      Returns the value of the ingredientsN record component.
      Returns:
      the value of the ingredientsN record component
    • ingredientsNTags

      public List<String> ingredientsNTags()
      Returns the value of the ingredientsNTags record component.
      Returns:
      the value of the ingredientsNTags record component
    • ingredientsOriginalTags

      public List<String> ingredientsOriginalTags()
      Returns the value of the ingredientsOriginalTags record component.
      Returns:
      the value of the ingredientsOriginalTags record component
    • ingredientsPercentAnalysis

      public int ingredientsPercentAnalysis()
      Returns the value of the ingredientsPercentAnalysis record component.
      Returns:
      the value of the ingredientsPercentAnalysis record component
    • ingredientsSweetenersN

      public int ingredientsSweetenersN()
      Returns the value of the ingredientsSweetenersN record component.
      Returns:
      the value of the ingredientsSweetenersN record component
    • ingredientsNonNutritiveSweetenersN

      public int ingredientsNonNutritiveSweetenersN()
      Returns the value of the ingredientsNonNutritiveSweetenersN record component.
      Returns:
      the value of the ingredientsNonNutritiveSweetenersN record component
    • ingredientsTags

      public List<String> ingredientsTags()
      Returns the value of the ingredientsTags record component.
      Returns:
      the value of the ingredientsTags record component
    • ingredientsLc

      public String ingredientsLc()
      Returns the value of the ingredientsLc record component.
      Returns:
      the value of the ingredientsLc record component
    • ingredientsText

      public String ingredientsText()
      Returns the value of the ingredientsText record component.
      Returns:
      the value of the ingredientsText record component
    • ingredientsTextWithAllergens

      public String ingredientsTextWithAllergens()
      Returns the value of the ingredientsTextWithAllergens record component.
      Returns:
      the value of the ingredientsTextWithAllergens record component
    • ingredientsThatMayBeFromPalmOilN

      public int ingredientsThatMayBeFromPalmOilN()
      Returns the value of the ingredientsThatMayBeFromPalmOilN record component.
      Returns:
      the value of the ingredientsThatMayBeFromPalmOilN record component
    • ingredientsThatMayBeFromPalmOilTags

      public List<String> ingredientsThatMayBeFromPalmOilTags()
      Returns the value of the ingredientsThatMayBeFromPalmOilTags record component.
      Returns:
      the value of the ingredientsThatMayBeFromPalmOilTags record component
    • ingredientsWithSpecifiedPercentN

      public int ingredientsWithSpecifiedPercentN()
      Returns the value of the ingredientsWithSpecifiedPercentN record component.
      Returns:
      the value of the ingredientsWithSpecifiedPercentN record component
    • ingredientsWithSpecifiedPercentSum

      public int ingredientsWithSpecifiedPercentSum()
      Returns the value of the ingredientsWithSpecifiedPercentSum record component.
      Returns:
      the value of the ingredientsWithSpecifiedPercentSum record component
    • ingredientsWithUnspecifiedPercentN

      public int ingredientsWithUnspecifiedPercentN()
      Returns the value of the ingredientsWithUnspecifiedPercentN record component.
      Returns:
      the value of the ingredientsWithUnspecifiedPercentN record component
    • ingredientsWithUnspecifiedPercentSum

      public int ingredientsWithUnspecifiedPercentSum()
      Returns the value of the ingredientsWithUnspecifiedPercentSum record component.
      Returns:
      the value of the ingredientsWithUnspecifiedPercentSum record component
    • knownIngredientsN

      public int knownIngredientsN()
      Returns the value of the knownIngredientsN record component.
      Returns:
      the value of the knownIngredientsN record component
    • origins

      public String origins()
      Returns the value of the origins record component.
      Returns:
      the value of the origins record component
    • originsHierarchy

      public List<String> originsHierarchy()
      Returns the value of the originsHierarchy record component.
      Returns:
      the value of the originsHierarchy record component
    • originsLc

      public String originsLc()
      Returns the value of the originsLc record component.
      Returns:
      the value of the originsLc record component
    • originsTags

      public List<String> originsTags()
      Returns the value of the originsTags record component.
      Returns:
      the value of the originsTags record component
    • traces

      public String traces()
      Returns the value of the traces record component.
      Returns:
      the value of the traces record component
    • tracesHierarchy

      public List<Object> tracesHierarchy()
      Returns the value of the tracesHierarchy record component.
      Returns:
      the value of the tracesHierarchy record component
    • tracesLc

      public String tracesLc()
      Returns the value of the tracesLc record component.
      Returns:
      the value of the tracesLc record component
    • tracesTags

      public List<Object> tracesTags()
      Returns the value of the tracesTags record component.
      Returns:
      the value of the tracesTags record component
    • unknownIngredientsN

      public int unknownIngredientsN()
      Returns the value of the unknownIngredientsN record component.
      Returns:
      the value of the unknownIngredientsN record component
    • ingredientsTextByLanguage

      public Map<String,String> ingredientsTextByLanguage()
      Returns the value of the ingredientsTextByLanguage record component.
      Returns:
      the value of the ingredientsTextByLanguage record component
    • ingredientsTextWithAllergensByLanguage

      public Map<String,String> ingredientsTextWithAllergensByLanguage()
      Returns the value of the ingredientsTextWithAllergensByLanguage record component.
      Returns:
      the value of the ingredientsTextWithAllergensByLanguage record component