public class HWPartition extends Object implements Comparable<HWPartition>
| Constructor and Description |
|---|
HWPartition()
Creates a new HWPartition
|
HWPartition(String identification,
String name,
String type,
String uuid,
long size,
int major,
int minor,
String mountPoint)
Creates a new HWPartition
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(HWPartition part) |
boolean |
equals(Object obj) |
String |
getIdentification()
Getter for the field
identification. |
int |
getMajor()
Getter for the field
major. |
int |
getMinor()
Getter for the field
minor. |
String |
getMountPoint()
Getter for the field
mountPoint. |
String |
getName()
Getter for the field
name. |
long |
getSize()
Getter for the field
size. |
String |
getType()
Getter for the field
type. |
String |
getUuid()
Getter for the field
uuid. |
int |
hashCode() |
void |
setIdentification(String identification)
Setter for the field
identification. |
void |
setMajor(int major)
Setter for the field
major. |
void |
setMinor(int minor)
Setter for the field
minor. |
void |
setMountPoint(String mountPoint)
Setter for the field
mountPoint. |
void |
setName(String name)
Setter for the field
name. |
void |
setSize(long size)
Setter for the field
size. |
void |
setType(String type)
Setter for the field
type. |
void |
setUuid(String uuid)
Setter for the field
uuid. |
String |
toString() |
public HWPartition(String identification, String name, String type, String uuid, long size, int major, int minor, String mountPoint)
identification - The unique partition idname - Friendly name of the partitiontype - Type or description of the partitionuuid - UUIDsize - Size in bytesmajor - Device ID (Major)minor - Device ID (Minor)mountPoint - Where the partition is mountedpublic HWPartition()
public String getIdentification()
Getter for the field identification.
public String getName()
Getter for the field name.
public String getType()
Getter for the field type.
public String getUuid()
Getter for the field uuid.
public long getSize()
Getter for the field size.
public int getMajor()
Getter for the field major.
public int getMinor()
Getter for the field minor.
public String getMountPoint()
Getter for the field mountPoint.
public void setIdentification(String identification)
Setter for the field identification.
identification - The identification to set.public void setName(String name)
Setter for the field name.
name - The name to set.public void setType(String type)
Setter for the field type.
type - The type to set.public void setUuid(String uuid)
Setter for the field uuid.
uuid - The uuid to set.public void setSize(long size)
Setter for the field size.
size - The size (in bytes) to set.public void setMajor(int major)
Setter for the field major.
major - The major device ID to set.public void setMinor(int minor)
Setter for the field minor.
minor - The minor device ID to set.public void setMountPoint(String mountPoint)
Setter for the field mountPoint.
mountPoint - Mount point of the partitionpublic int compareTo(HWPartition part)
compareTo in interface Comparable<HWPartition>Copyright © 2010–2020 oshi. All rights reserved.