Record Class SolutionDay16.SolutionDay16Input
java.lang.Object
java.lang.Record
com.expedient.adventofcodejade.solutions.year2024.SolutionDay16.SolutionDay16Input
- Record Components:
grid-startPoint-endPoint-
- Enclosing class:
SolutionDay16
public static record SolutionDay16.SolutionDay16Input(Grid<Character> grid, Coordinate startPoint, Coordinate endPoint)
extends Record
Represents parsed grid (maze), starting point, and ending point derived from Puzzle Input
-
Constructor Summary
ConstructorsConstructorDescriptionSolutionDay16Input(Grid<Character> grid, Coordinate startPoint, Coordinate endPoint) Creates an instance of aSolutionDay16Inputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionendPoint()Returns the value of theendPointrecord component.final booleanIndicates whether some other object is "equal to" this one.fromPuzzleInput(PuzzleInput input) grid()Returns the value of thegridrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thestartPointrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SolutionDay16Input
Creates an instance of aSolutionDay16Inputrecord class.- Parameters:
grid- the value for thegridrecord componentstartPoint- the value for thestartPointrecord componentendPoint- the value for theendPointrecord component
-
-
Method Details
-
fromPuzzleInput
-
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). -
grid
-
startPoint
Returns the value of thestartPointrecord component.- Returns:
- the value of the
startPointrecord component
-
endPoint
-