Package org.applecommander.device.nibble
Record Class DiskMarker
java.lang.Object
java.lang.Record
org.applecommander.device.nibble.DiskMarker
public record DiskMarker(int sectorsOnTrack, NibbleDiskCodec codec, int[] addressProlog, int[] addressEpilog, int[] dataProlog, int[] dataEpilog)
extends Record
A disk marker is just the prolog and epilog bytes for the address field and data field.
It also serves as the keeper of expected sectors and codec.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDiskMarker(int sectorsOnTrack, NibbleDiskCodec codec, int[] addressProlog, int[] addressEpilog, int[] dataProlog, int[] dataEpilog) Creates an instance of aDiskMarkerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionint[]Returns the value of theaddressEpilogrecord component.int[]Returns the value of theaddressPrologrecord component.static DiskMarker.Builderbuild(int sectorsOnTrack) codec()Returns the value of thecodecrecord component.int[]Returns the value of thedataEpilogrecord component.int[]Returns the value of thedataPrologrecord component.static DiskMarkerstatic DiskMarkerfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thesectorsOnTrackrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiskMarker
public DiskMarker(int sectorsOnTrack, NibbleDiskCodec codec, int[] addressProlog, int[] addressEpilog, int[] dataProlog, int[] dataEpilog) Creates an instance of aDiskMarkerrecord class.- Parameters:
sectorsOnTrack- the value for thesectorsOnTrackrecord componentcodec- the value for thecodecrecord componentaddressProlog- the value for theaddressPrologrecord componentaddressEpilog- the value for theaddressEpilogrecord componentdataProlog- the value for thedataPrologrecord componentdataEpilog- the value for thedataEpilogrecord component
-
-
Method Details
-
disk525sector16
-
disk525sector13
-
build
-
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 '=='. -
sectorsOnTrack
public int sectorsOnTrack()Returns the value of thesectorsOnTrackrecord component.- Returns:
- the value of the
sectorsOnTrackrecord component
-
codec
Returns the value of thecodecrecord component.- Returns:
- the value of the
codecrecord component
-
addressProlog
public int[] addressProlog()Returns the value of theaddressPrologrecord component.- Returns:
- the value of the
addressPrologrecord component
-
addressEpilog
public int[] addressEpilog()Returns the value of theaddressEpilogrecord component.- Returns:
- the value of the
addressEpilogrecord component
-
dataProlog
public int[] dataProlog()Returns the value of thedataPrologrecord component.- Returns:
- the value of the
dataPrologrecord component
-
dataEpilog
public int[] dataEpilog()Returns the value of thedataEpilogrecord component.- Returns:
- the value of the
dataEpilogrecord component
-