public class HWPartition extends Object implements Serializable, 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() |
int |
getMajor() |
int |
getMinor() |
String |
getMountPoint() |
String |
getName() |
long |
getSize() |
String |
getType() |
String |
getUuid() |
int |
hashCode() |
void |
setIdentification(String identification) |
void |
setMajor(int major) |
void |
setMinor(int minor) |
void |
setMountPoint(String mountPoint) |
void |
setName(String name) |
void |
setSize(long size) |
void |
setType(String type) |
void |
setUuid(String uuid) |
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()
public String getName()
public String getType()
public String getUuid()
public long getSize()
public int getMajor()
public int getMinor()
public String getMountPoint()
public void setIdentification(String identification)
identification - The identification to set.public void setName(String name)
name - The name to set.public void setType(String type)
type - The type to set.public void setUuid(String uuid)
uuid - The uuid to set.public void setSize(long size)
size - The size (in bytes) to set.public void setMajor(int major)
major - The major device ID to set.public void setMinor(int minor)
minor - The minor device ID to set.public void setMountPoint(String mountPoint)
mountPoint - Mount point of the partitionpublic int compareTo(HWPartition part)
compareTo in interface Comparable<HWPartition>Copyright © 2010–2018 oshi. All rights reserved.