Record Class Coordinate.BlockCoordinate
java.lang.Object
java.lang.Record
org.applecommander.os.Coordinate.BlockCoordinate
- All Implemented Interfaces:
Coordinate
- Enclosing interface:
Coordinate
Represents a (potentially) ProDOS, RDOS, CP/M, Pascal, or other block coordinate.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Coordinate
Coordinate.BlockCoordinate, Coordinate.TrackAndSectorCoordinate, Coordinate.TrackCoordinate -
Constructor Summary
ConstructorsConstructorDescriptionBlockCoordinate(int block) Creates an instance of aBlockCoordinaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintblock()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
BlockCoordinate
public BlockCoordinate(int block) Creates an instance of aBlockCoordinaterecord class.- Parameters:
block- the value for theblockrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. -
block
public int block()Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-