Record Class SolutionDay13.Machine
java.lang.Object
java.lang.Record
com.expedient.adventofcodejade.solutions.year2024.SolutionDay13.Machine
- Record Components:
- the x and y change resulting from pressing button A once- the x and y change resulting from pressing button B onceprize- the coordinates of the Prize
- Enclosing class:
SolutionDay13
public static record SolutionDay13.Machine(Pair<Long,Long> buttonA, Pair<Long,Long> buttonB, Pair<Long,Long> prize)
extends Record
Record representing a Claw Machine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuttonA()Returns the value of thebuttonArecord component.buttonB()Returns the value of thebuttonBrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.prize()Returns the value of theprizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
buttonA
-
buttonB
-
prize
-