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 SummaryConstructorsConstructorDescriptionInfo(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 SummaryModifier 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- 
Infopublic 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 the- creatorrecord component
- headerSize- the value for the- headerSizerecord component
- version- the value for the- versionrecord component
- imageFormat- the value for the- imageFormatrecord component
- flags- the value for the- flagsrecord component
- prodosBlocks- the value for the- prodosBlocksrecord component
- dataOffset- the value for the- dataOffsetrecord component
- dataLength- the value for the- dataLengthrecord component
- comment- the value for the- commentrecord component
- creatorData- the value for the- creatorDatarecord component
 
 
- 
- 
Method Details- 
isDOSOrderedpublic boolean isDOSOrdered()
- 
isProdosOrderedpublic boolean isProdosOrdered()
- 
isNibbleOrderpublic boolean isNibbleOrder()
- 
isLockedpublic boolean isLocked()
- 
getDosVolumeNumberpublic int getDosVolumeNumber()
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
creatorReturns the value of thecreatorrecord component.- Returns:
- the value of the creatorrecord component
 
- 
headerSizepublic int headerSize()Returns the value of theheaderSizerecord component.- Returns:
- the value of the headerSizerecord component
 
- 
versionpublic int version()Returns the value of theversionrecord component.- Returns:
- the value of the versionrecord component
 
- 
imageFormatpublic int imageFormat()Returns the value of theimageFormatrecord component.- Returns:
- the value of the imageFormatrecord component
 
- 
flagspublic int flags()Returns the value of theflagsrecord component.- Returns:
- the value of the flagsrecord component
 
- 
prodosBlockspublic int prodosBlocks()Returns the value of theprodosBlocksrecord component.- Returns:
- the value of the prodosBlocksrecord component
 
- 
dataOffsetpublic int dataOffset()Returns the value of thedataOffsetrecord component.- Returns:
- the value of the dataOffsetrecord component
 
- 
dataLengthpublic int dataLength()Returns the value of thedataLengthrecord component.- Returns:
- the value of the dataLengthrecord component
 
- 
commentReturns the value of thecommentrecord component.- Returns:
- the value of the commentrecord component
 
- 
creatorDataReturns the value of thecreatorDatarecord component.- Returns:
- the value of the creatorDatarecord component
 
 
-