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

    Constructors
    Constructor
    Description
    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 a Info record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the comment record component.
    Returns the value of the creator record component.
    Returns the value of the creatorData record component.
    int
    Returns the value of the dataLength record component.
    int
    Returns the value of the dataOffset record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the flags record component.
    int
     
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the headerSize record component.
    int
    Returns the value of the imageFormat record component.
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    int
    Returns the value of the prodosBlocks record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the version record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Info record class.
      Parameters:
      creator - the value for the creator record component
      headerSize - the value for the headerSize record component
      version - the value for the version record component
      imageFormat - the value for the imageFormat record component
      flags - the value for the flags record component
      prodosBlocks - the value for the prodosBlocks record component
      dataOffset - the value for the dataOffset record component
      dataLength - the value for the dataLength record component
      comment - the value for the comment record component
      creatorData - the value for the creatorData 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • creator

      public String creator()
      Returns the value of the creator record component.
      Returns:
      the value of the creator record component
    • headerSize

      public int headerSize()
      Returns the value of the headerSize record component.
      Returns:
      the value of the headerSize record component
    • version

      public int version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • imageFormat

      public int imageFormat()
      Returns the value of the imageFormat record component.
      Returns:
      the value of the imageFormat record component
    • flags

      public int flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component
    • prodosBlocks

      public int prodosBlocks()
      Returns the value of the prodosBlocks record component.
      Returns:
      the value of the prodosBlocks record component
    • dataOffset

      public int dataOffset()
      Returns the value of the dataOffset record component.
      Returns:
      the value of the dataOffset record component
    • dataLength

      public int dataLength()
      Returns the value of the dataLength record component.
      Returns:
      the value of the dataLength record component
    • comment

      public String comment()
      Returns the value of the comment record component.
      Returns:
      the value of the comment record component
    • creatorData

      public DataBuffer creatorData()
      Returns the value of the creatorData record component.
      Returns:
      the value of the creatorData record component