Record Class BlockDevice.Geometry
java.lang.Object
java.lang.Record
org.applecommander.device.BlockDevice.Geometry
- Enclosing interface:
BlockDevice
-
Constructor Summary
ConstructorsConstructorDescriptionGeometry(int blockSize, int blocksOnDevice) Creates an instance of aGeometryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theblockSizerecord component.intReturns the value of theblocksOnDevicerecord component.intfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Geometry
public Geometry(int blockSize, int blocksOnDevice) Creates an instance of aGeometryrecord class.- Parameters:
blockSize- the value for theblockSizerecord componentblocksOnDevice- the value for theblocksOnDevicerecord component
-
-
Method Details
-
deviceSize
public int deviceSize() -
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. -
blockSize
public int blockSize()Returns the value of theblockSizerecord component.- Returns:
- the value of the
blockSizerecord component
-
blocksOnDevice
public int blocksOnDevice()Returns the value of theblocksOnDevicerecord component.- Returns:
- the value of the
blocksOnDevicerecord component
-