Package org.applecommander.device
Record Class DiskMarker
java.lang.Object
java.lang.Record
org.applecommander.device.DiskMarker
public record DiskMarker(int[] addressProlog, int[] addressEpilog, int[] dataProlog, int[] dataEpilog)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDiskMarker
(int[] addressProlog, int[] addressEpilog, int[] dataProlog, int[] dataEpilog) Creates an instance of aDiskMarker
record class. -
Method Summary
Modifier and TypeMethodDescriptionint[]
Returns the value of theaddressEpilog
record component.int[]
Returns the value of theaddressProlog
record component.static DiskMarker.Builder
build()
int[]
Returns the value of thedataEpilog
record component.int[]
Returns the value of thedataProlog
record component.static DiskMarker
static DiskMarker
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DiskMarker
public DiskMarker(int[] addressProlog, int[] addressEpilog, int[] dataProlog, int[] dataEpilog) Creates an instance of aDiskMarker
record class.- Parameters:
addressProlog
- the value for theaddressProlog
record componentaddressEpilog
- the value for theaddressEpilog
record componentdataProlog
- the value for thedataProlog
record componentdataEpilog
- the value for thedataEpilog
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
addressProlog
public int[] addressProlog()Returns the value of theaddressProlog
record component.- Returns:
- the value of the
addressProlog
record component
-
addressEpilog
public int[] addressEpilog()Returns the value of theaddressEpilog
record component.- Returns:
- the value of the
addressEpilog
record component
-
dataProlog
public int[] dataProlog()Returns the value of thedataProlog
record component.- Returns:
- the value of the
dataProlog
record component
-
dataEpilog
public int[] dataEpilog()Returns the value of thedataEpilog
record component.- Returns:
- the value of the
dataEpilog
record component
-