Class SectorUsage
java.lang.Object
org.applecommander.usage.DiskUsage
org.applecommander.usage.SectorUsage
Provides sector level usage information. Sectors are always the same size in all contexts,
so it is hard-coded.
-
Nested Class Summary
Nested classes/interfaces inherited from class DiskUsage
DiskUsage.UsageType -
Constructor Summary
ConstructorsConstructorDescriptionSectorUsage(TrackSectorDevice.Geometry geometry, BiFunction<Integer, Integer, DiskUsage.UsageType> usageFn) -
Method Summary
Methods inherited from class DiskUsage
getBytesFree, getBytesUsed, getFree, getTotalBytes, getUsed
-
Constructor Details
-
SectorUsage
public SectorUsage(TrackSectorDevice.Geometry geometry, BiFunction<Integer, Integer, DiskUsage.UsageType> usageFn)
-
-
Method Details
-
getUsageCounts
- Specified by:
getUsageCountsin classDiskUsage
-
getUsage
-
getTotal
-
getTracksOnDisk
public int getTracksOnDisk() -
getSectorsPerTrack
public int getSectorsPerTrack()
-