Record Class IngredientsAnalysis
java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.dtos.IngredientsAnalysis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.palmOil()Returns the value of thepalmOilrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theveganStatusUnknownrecord component.Returns the value of thevegetarianStatusUnknownrecord component.
-
Constructor Details
-
IngredientsAnalysis
public IngredientsAnalysis(List<String> palmOil, List<String> veganStatusUnknown, List<String> vegetarianStatusUnknown) Creates an instance of aIngredientsAnalysisrecord class.- Parameters:
palmOil- the value for thepalmOilrecord componentveganStatusUnknown- the value for theveganStatusUnknownrecord componentvegetarianStatusUnknown- the value for thevegetarianStatusUnknownrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
palmOil
Returns the value of thepalmOilrecord component.- Returns:
- the value of the
palmOilrecord component
-
veganStatusUnknown
Returns the value of theveganStatusUnknownrecord component.- Returns:
- the value of the
veganStatusUnknownrecord component
-
vegetarianStatusUnknown
Returns the value of thevegetarianStatusUnknownrecord component.- Returns:
- the value of the
vegetarianStatusUnknownrecord component
-