Record Class Coordinate.TrackCoordinate
java.lang.Object
java.lang.Record
org.applecommander.os.Coordinate.TrackCoordinate
- All Implemented Interfaces:
Coordinate
- Enclosing interface:
Coordinate
Represents a full track coordinate. Useful for full track matches or (possibly) a "nibblized"
track.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Coordinate
Coordinate.BlockCoordinate, Coordinate.TrackAndSectorCoordinate, Coordinate.TrackCoordinate -
Constructor Summary
ConstructorsConstructorDescriptionTrackCoordinate(int track) Creates an instance of aTrackCoordinaterecord class. -
Method Summary
-
Constructor Details
-
TrackCoordinate
public TrackCoordinate(int track) Creates an instance of aTrackCoordinaterecord class.- Parameters:
track- the value for thetrackrecord component
-
-
Method Details
-
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 thecomparemethod from their corresponding wrapper classes. -
toString
-
hashCode
-
track
public int track()Returns the value of thetrackrecord component.- Returns:
- the value of the
trackrecord component
-