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 TypeMethodDescriptionint
Returns the value of thecalculatedDataChecksum
record component.int
Returns the value of thecalculatedTagChecksum
record component.int
Returns the value of thedataChecksum
record component.int
dataSize()
Returns the value of thedataSize
record component.int
Returns the value of thediskFormat
record component.diskName()
Returns the value of thediskName
record component.final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of theformatByte
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thetagChecksum
record component.int
tagSize()
Returns the value of thetagSize
record component.final String
toString()
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 aInfo
record class.- Parameters:
diskName
- the value for thediskName
record componentdataSize
- the value for thedataSize
record componenttagSize
- the value for thetagSize
record componentdataChecksum
- the value for thedataChecksum
record componenttagChecksum
- the value for thetagChecksum
record componentdiskFormat
- the value for thediskFormat
record componentformatByte
- the value for theformatByte
record componentcalculatedDataChecksum
- the value for thecalculatedDataChecksum
record componentcalculatedTagChecksum
- the value for thecalculatedTagChecksum
record 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 thediskName
record component.- Returns:
- the value of the
diskName
record component
-
dataSize
public int dataSize()Returns the value of thedataSize
record component.- Returns:
- the value of the
dataSize
record component
-
tagSize
public int tagSize()Returns the value of thetagSize
record component.- Returns:
- the value of the
tagSize
record component
-
dataChecksum
public int dataChecksum()Returns the value of thedataChecksum
record component.- Returns:
- the value of the
dataChecksum
record component
-
tagChecksum
public int tagChecksum()Returns the value of thetagChecksum
record component.- Returns:
- the value of the
tagChecksum
record component
-
diskFormat
public int diskFormat()Returns the value of thediskFormat
record component.- Returns:
- the value of the
diskFormat
record component
-
formatByte
public int formatByte()Returns the value of theformatByte
record component.- Returns:
- the value of the
formatByte
record component
-
calculatedDataChecksum
public int calculatedDataChecksum()Returns the value of thecalculatedDataChecksum
record component.- Returns:
- the value of the
calculatedDataChecksum
record component
-
calculatedTagChecksum
public int calculatedTagChecksum()Returns the value of thecalculatedTagChecksum
record component.- Returns:
- the value of the
calculatedTagChecksum
record component
-