Package oshi.hardware
Class HWPartition
java.lang.Object
oshi.hardware.HWPartition
A region on a hard disk or other secondary storage, so that an operating system can manage information in each region
 separately. A partition appears in the operating system as a distinct "logical" disk that uses part of the actual
 disk.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGetter for the fieldidentification.intgetMajor()Getter for the fieldmajor.intgetMinor()Getter for the fieldminor.Getter for the fieldmountPoint.getName()Getter for the fieldname.longgetSize()Getter for the fieldsize.getType()Getter for the fieldtype.getUuid()Getter for the fielduuid.toString()
- 
Constructor Details- 
HWPartitionpublic HWPartition(String identification, String name, String type, String uuid, long size, int major, int minor, String mountPoint) Creates a new HWPartition- Parameters:
- identification- The unique partition id
- name- Friendly name of the partition
- type- Type or description of the partition
- uuid- UUID
- size- Size in bytes
- major- Device ID (Major)
- minor- Device ID (Minor)
- mountPoint- Where the partition is mounted
 
 
- 
- 
Method Details- 
getIdentificationGetter for the field identification.- Returns:
- Returns the identification.
 
- 
getNameGetter for the field name.- Returns:
- Returns the name.
 
- 
getTypeGetter for the field type.- Returns:
- Returns the type.
 
- 
getUuidGetter for the field uuid.- Returns:
- Returns the uuid.
 
- 
getSizepublic long getSize()Getter for the field size.- Returns:
- Returns the size in bytes.
 
- 
getMajorpublic int getMajor()Getter for the field major.- Returns:
- Returns the major device ID.
 
- 
getMinorpublic int getMinor()Getter for the field minor.- Returns:
- Returns the minor device ID.
 
- 
getMountPointGetter for the field mountPoint.- Returns:
- Returns the mount point.
 
- 
toString
 
-