Package org.applecommander.image
Record Class UniversalDiskImage.Info
java.lang.Object
java.lang.Record
org.applecommander.image.UniversalDiskImage.Info
- Enclosing class:
UniversalDiskImage
public static record UniversalDiskImage.Info(String creator, int headerSize, int version, int imageFormat, int flags, int prodosBlocks, int dataOffset, int dataLength, String comment, DataBuffer creatorData)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInfo(String creator, int headerSize, int version, int imageFormat, int flags, int prodosBlocks, int dataOffset, int dataLength, String comment, DataBuffer creatorData) Creates an instance of aInforecord class. -
Method Summary
Modifier and TypeMethodDescriptioncomment()Returns the value of thecommentrecord component.creator()Returns the value of thecreatorrecord component.Returns the value of thecreatorDatarecord component.intReturns the value of thedataLengthrecord component.intReturns the value of thedataOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.intflags()Returns the value of theflagsrecord component.intfinal inthashCode()Returns a hash code value for this object.intReturns the value of theheaderSizerecord component.intReturns the value of theimageFormatrecord component.booleanbooleanisLocked()booleanbooleanintReturns the value of theprodosBlocksrecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
Info
public Info(String creator, int headerSize, int version, int imageFormat, int flags, int prodosBlocks, int dataOffset, int dataLength, String comment, DataBuffer creatorData) Creates an instance of aInforecord class.- Parameters:
creator- the value for thecreatorrecord componentheaderSize- the value for theheaderSizerecord componentversion- the value for theversionrecord componentimageFormat- the value for theimageFormatrecord componentflags- the value for theflagsrecord componentprodosBlocks- the value for theprodosBlocksrecord componentdataOffset- the value for thedataOffsetrecord componentdataLength- the value for thedataLengthrecord componentcomment- the value for thecommentrecord componentcreatorData- the value for thecreatorDatarecord component
-
-
Method Details
-
isDOSOrdered
public boolean isDOSOrdered() -
isProdosOrdered
public boolean isProdosOrdered() -
isNibbleOrder
public boolean isNibbleOrder() -
isLocked
public boolean isLocked() -
getDosVolumeNumber
public int getDosVolumeNumber() -
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 '=='. -
creator
Returns the value of thecreatorrecord component.- Returns:
- the value of the
creatorrecord component
-
headerSize
public int headerSize()Returns the value of theheaderSizerecord component.- Returns:
- the value of the
headerSizerecord component
-
version
public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
imageFormat
public int imageFormat()Returns the value of theimageFormatrecord component.- Returns:
- the value of the
imageFormatrecord component
-
flags
public int flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
prodosBlocks
public int prodosBlocks()Returns the value of theprodosBlocksrecord component.- Returns:
- the value of the
prodosBlocksrecord component
-
dataOffset
public int dataOffset()Returns the value of thedataOffsetrecord component.- Returns:
- the value of the
dataOffsetrecord component
-
dataLength
public int dataLength()Returns the value of thedataLengthrecord component.- Returns:
- the value of the
dataLengthrecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-
creatorData
Returns the value of thecreatorDatarecord component.- Returns:
- the value of the
creatorDatarecord component
-