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 boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.palmOil()
Returns the value of thepalmOil
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theveganStatusUnknown
record component.Returns the value of thevegetarianStatusUnknown
record component.
-
Constructor Details
-
IngredientsAnalysis
public IngredientsAnalysis(List<String> palmOil, List<String> veganStatusUnknown, List<String> vegetarianStatusUnknown) Creates an instance of aIngredientsAnalysis
record class.- Parameters:
palmOil
- the value for thepalmOil
record componentveganStatusUnknown
- the value for theveganStatusUnknown
record componentvegetarianStatusUnknown
- the value for thevegetarianStatusUnknown
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
palmOil
Returns the value of thepalmOil
record component.- Returns:
- the value of the
palmOil
record component
-
veganStatusUnknown
Returns the value of theveganStatusUnknown
record component.- Returns:
- the value of the
veganStatusUnknown
record component
-
vegetarianStatusUnknown
Returns the value of thevegetarianStatusUnknown
record component.- Returns:
- the value of the
vegetarianStatusUnknown
record component
-