Package org.applecommander.image
Record Class DiskCopyImage.Info
java.lang.Object
java.lang.Record
org.applecommander.image.DiskCopyImage.Info
- Enclosing class:
DiskCopyImage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecalculatedDataChecksumrecord component.intReturns the value of thecalculatedTagChecksumrecord component.intReturns the value of thedataChecksumrecord component.intdataSize()Returns the value of thedataSizerecord component.intReturns the value of thediskFormatrecord component.diskName()Returns the value of thediskNamerecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theformatByterecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thetagChecksumrecord component.inttagSize()Returns the value of thetagSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Info
public Info(String diskName, int dataSize, int tagSize, int dataChecksum, int tagChecksum, int diskFormat, int formatByte, int calculatedDataChecksum, int calculatedTagChecksum) Creates an instance of aInforecord class.- Parameters:
diskName- the value for thediskNamerecord componentdataSize- the value for thedataSizerecord componenttagSize- the value for thetagSizerecord componentdataChecksum- the value for thedataChecksumrecord componenttagChecksum- the value for thetagChecksumrecord componentdiskFormat- the value for thediskFormatrecord componentformatByte- the value for theformatByterecord componentcalculatedDataChecksum- the value for thecalculatedDataChecksumrecord componentcalculatedTagChecksum- the value for thecalculatedTagChecksumrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
diskName
Returns the value of thediskNamerecord component.- Returns:
- the value of the
diskNamerecord component
-
dataSize
public int dataSize()Returns the value of thedataSizerecord component.- Returns:
- the value of the
dataSizerecord component
-
tagSize
public int tagSize()Returns the value of thetagSizerecord component.- Returns:
- the value of the
tagSizerecord component
-
dataChecksum
public int dataChecksum()Returns the value of thedataChecksumrecord component.- Returns:
- the value of the
dataChecksumrecord component
-
tagChecksum
public int tagChecksum()Returns the value of thetagChecksumrecord component.- Returns:
- the value of the
tagChecksumrecord component
-
diskFormat
public int diskFormat()Returns the value of thediskFormatrecord component.- Returns:
- the value of the
diskFormatrecord component
-
formatByte
public int formatByte()Returns the value of theformatByterecord component.- Returns:
- the value of the
formatByterecord component
-
calculatedDataChecksum
public int calculatedDataChecksum()Returns the value of thecalculatedDataChecksumrecord component.- Returns:
- the value of the
calculatedDataChecksumrecord component
-
calculatedTagChecksum
public int calculatedTagChecksum()Returns the value of thecalculatedTagChecksumrecord component.- Returns:
- the value of the
calculatedTagChecksumrecord component
-