Record Class SolutionDay9.FileSystemBlock
java.lang.Object
java.lang.Record
com.expedient.adventofcodejade.solutions.year2024.SolutionDay9.FileSystemBlock
- Enclosing class:
SolutionDay9
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemBlock(Integer fileId, boolean moved) Creates an instance of aFileSystemBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fileId()Returns the value of thefileIdrecord component.final inthashCode()Returns a hash code value for this object.booleanmoved()Returns the value of themovedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileSystemBlock
Creates an instance of aFileSystemBlockrecord class.- Parameters:
fileId- the value for thefileIdrecord componentmoved- the value for themovedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
fileId
Returns the value of thefileIdrecord component.- Returns:
- the value of the
fileIdrecord component
-
moved
public boolean moved()Returns the value of themovedrecord component.- Returns:
- the value of the
movedrecord component
-