Record Class AggregatedOrigins
java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.dtos.AggregatedOrigins
-
Constructor Summary
ConstructorsConstructorDescriptionAggregatedOrigins
(String epiScore, String origin, Integer percent, Integer transportationScore) Creates an instance of aAggregatedOrigins
record class. -
Method Summary
Modifier and TypeMethodDescriptionepiScore()
Returns the value of theepiScore
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.origin()
Returns the value of theorigin
record component.percent()
Returns the value of thepercent
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetransportationScore
record component.
-
Constructor Details
-
AggregatedOrigins
public AggregatedOrigins(String epiScore, String origin, Integer percent, Integer transportationScore) Creates an instance of aAggregatedOrigins
record class.- Parameters:
epiScore
- the value for theepiScore
record componentorigin
- the value for theorigin
record componentpercent
- the value for thepercent
record componenttransportationScore
- the value for thetransportationScore
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)
. -
epiScore
Returns the value of theepiScore
record component.- Returns:
- the value of the
epiScore
record component
-
origin
Returns the value of theorigin
record component.- Returns:
- the value of the
origin
record component
-
percent
Returns the value of thepercent
record component.- Returns:
- the value of the
percent
record component
-
transportationScore
Returns the value of thetransportationScore
record component.- Returns:
- the value of the
transportationScore
record component
-