public class HWPartition extends AbstractOshiJsonObject 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() |
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) |
javax.json.JsonObject |
toJSON(Properties properties)
Returns this object as a
JsonObject. |
toCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSON, toStringpublic 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 javax.json.JsonObject toJSON(Properties properties)
JsonObject. The provided
properties will be set on this object to configure the type of
information returned using this and future invocations of
OshiJsonObject.toJSON().toJSON in interface OshiJsonObjectproperties - Properties to configure returned resultsJsonObject for this class.public int compareTo(HWPartition part)
compareTo in interface Comparable<HWPartition>Copyright © 2010–2017 oshi. All rights reserved.