Record Class SolutionDay9.File
java.lang.Object
java.lang.Record
com.expedient.adventofcodejade.solutions.year2024.SolutionDay9.File
- Enclosing class:
SolutionDay9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fileEnd()Returns the value of thefileEndrecord component.fileId()Returns the value of thefileIdrecord component.Returns the value of thefileStartrecord component.final inthashCode()Returns a hash code value for this object.intlength()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
File
-
-
Method Details
-
length
public int length() -
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). -
fileStart
Returns the value of thefileStartrecord component.- Returns:
- the value of the
fileStartrecord component
-
fileEnd
Returns the value of thefileEndrecord component.- Returns:
- the value of the
fileEndrecord component
-
fileId
Returns the value of thefileIdrecord component.- Returns:
- the value of the
fileIdrecord component
-