Package org.applecommander.device
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
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 with '=='. -
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
-