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 aAggregatedOriginsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionepiScore()Returns the value of theepiScorerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.origin()Returns the value of theoriginrecord component.percent()Returns the value of thepercentrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportationScorerecord component.
-
Constructor Details
-
AggregatedOrigins
public AggregatedOrigins(String epiScore, String origin, Integer percent, Integer transportationScore) Creates an instance of aAggregatedOriginsrecord class.- Parameters:
epiScore- the value for theepiScorerecord componentorigin- the value for theoriginrecord componentpercent- the value for thepercentrecord componenttransportationScore- the value for thetransportationScorerecord 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 theepiScorerecord component.- Returns:
- the value of the
epiScorerecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
percent
Returns the value of thepercentrecord component.- Returns:
- the value of the
percentrecord component
-
transportationScore
Returns the value of thetransportationScorerecord component.- Returns:
- the value of the
transportationScorerecord component
-