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 aInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptioncomment()
Returns the value of thecomment
record component.creator()
Returns the value of thecreator
record component.Returns the value of thecreatorData
record component.int
Returns the value of thedataLength
record component.int
Returns the value of thedataOffset
record component.final boolean
Indicates whether some other object is "equal to" this one.int
flags()
Returns the value of theflags
record component.int
final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theheaderSize
record component.int
Returns the value of theimageFormat
record component.boolean
boolean
isLocked()
boolean
boolean
int
Returns the value of theprodosBlocks
record component.final String
toString()
Returns a string representation of this record class.int
version()
Returns the value of theversion
record 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 aInfo
record class.- Parameters:
creator
- the value for thecreator
record componentheaderSize
- the value for theheaderSize
record componentversion
- the value for theversion
record componentimageFormat
- the value for theimageFormat
record componentflags
- the value for theflags
record componentprodosBlocks
- the value for theprodosBlocks
record componentdataOffset
- the value for thedataOffset
record componentdataLength
- the value for thedataLength
record componentcomment
- the value for thecomment
record componentcreatorData
- the value for thecreatorData
record 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 thecreator
record component.- Returns:
- the value of the
creator
record component
-
headerSize
public int headerSize()Returns the value of theheaderSize
record component.- Returns:
- the value of the
headerSize
record component
-
version
public int version()Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
imageFormat
public int imageFormat()Returns the value of theimageFormat
record component.- Returns:
- the value of the
imageFormat
record component
-
flags
public int flags()Returns the value of theflags
record component.- Returns:
- the value of the
flags
record component
-
prodosBlocks
public int prodosBlocks()Returns the value of theprodosBlocks
record component.- Returns:
- the value of the
prodosBlocks
record component
-
dataOffset
public int dataOffset()Returns the value of thedataOffset
record component.- Returns:
- the value of the
dataOffset
record component
-
dataLength
public int dataLength()Returns the value of thedataLength
record component.- Returns:
- the value of the
dataLength
record component
-
comment
Returns the value of thecomment
record component.- Returns:
- the value of the
comment
record component
-
creatorData
Returns the value of thecreatorData
record component.- Returns:
- the value of the
creatorData
record component
-