Package org.applecommander.device
Record Class TrackSectorDevice.Geometry
java.lang.Object
java.lang.Record
org.applecommander.device.TrackSectorDevice.Geometry
- Enclosing interface:
TrackSectorDevice
public static record TrackSectorDevice.Geometry(int tracksOnDisk, int sectorsPerTrack)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGeometry(int tracksOnDisk, int sectorsPerTrack) Creates an instance of aGeometryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intintReturns the value of thesectorsPerTrackrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetracksOnDiskrecord component.
-
Constructor Details
-
Geometry
public Geometry(int tracksOnDisk, int sectorsPerTrack) Creates an instance of aGeometryrecord class.- Parameters:
tracksOnDisk- the value for thetracksOnDiskrecord componentsectorsPerTrack- the value for thesectorsPerTrackrecord component
-
-
Method Details
-
sectorsPerDisk
public int sectorsPerDisk() -
deviceSize
public int deviceSize() -
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. All components in this record class are compared with '=='. -
tracksOnDisk
public int tracksOnDisk()Returns the value of thetracksOnDiskrecord component.- Returns:
- the value of the
tracksOnDiskrecord component
-
sectorsPerTrack
public int sectorsPerTrack()Returns the value of thesectorsPerTrackrecord component.- Returns:
- the value of the
sectorsPerTrackrecord component
-