Record Class SolutionDay21.PadTask
java.lang.Object
java.lang.Record
com.expedient.adventofcodejade.solutions.year2024.SolutionDay21.PadTask
- Enclosing class:
SolutionDay21
public static record SolutionDay21.PadTask(SolutionDay21.Input input, Integer padDepth)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPadTask(SolutionDay21.Input input, Integer padDepth) Creates an instance of aPadTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.padDepth()Returns the value of thepadDepthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PadTask
Creates an instance of aPadTaskrecord class.- Parameters:
input- the value for theinputrecord componentpadDepth- the value for thepadDepthrecord 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). -
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
padDepth
Returns the value of thepadDepthrecord component.- Returns:
- the value of the
padDepthrecord component
-