Record Class SolutionDay22.PriceChanges
java.lang.Object
java.lang.Record
com.expedient.adventofcodejade.solutions.year2024.SolutionDay22.PriceChanges
-
Constructor Summary
ConstructorsConstructorDescriptionPriceChanges(Integer one, Integer two, Integer three, Integer four) Creates an instance of aPriceChangesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.four()Returns the value of thefourrecord component.final inthashCode()Returns a hash code value for this object.one()Returns the value of theonerecord component.three()Returns the value of thethreerecord component.final StringtoString()Returns a string representation of this record class.two()Returns the value of thetworecord component.
-
Constructor Details
-
PriceChanges
Creates an instance of aPriceChangesrecord class.- Parameters:
one- the value for theonerecord componenttwo- the value for thetworecord componentthree- the value for thethreerecord componentfour- the value for thefourrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
one
Returns the value of theonerecord component.- Returns:
- the value of the
onerecord component
-
two
Returns the value of thetworecord component.- Returns:
- the value of the
tworecord component
-
three
Returns the value of thethreerecord component.- Returns:
- the value of the
threerecord component
-
four
Returns the value of thefourrecord component.- Returns:
- the value of the
fourrecord component
-