public abstract class AbstractUsbDevice extends Object implements UsbDevice
| Modifier and Type | Field and Description |
|---|---|
protected UsbDevice[] |
connectedDevices |
protected String |
name |
protected String |
serialNumber |
protected String |
vendor |
| Constructor and Description |
|---|
AbstractUsbDevice(String name,
String vendor,
String serialNumber,
UsbDevice[] connectedDevices) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(UsbDevice usb) |
UsbDevice[] |
getConnectedDevices()
Other devices connected to this hub
|
String |
getName()
Name of the USB device
|
String |
getSerialNumber()
Serial number of the USB device
|
String |
getVendor()
Vendor that manufactured the USB device
|
javax.json.JsonObject |
toJSON()
Creates a compact JSON string containing the information for this class
|
String |
toString() |
protected String name
protected String vendor
protected String serialNumber
protected UsbDevice[] connectedDevices
public String getName()
public String getVendor()
public String getSerialNumber()
getSerialNumber in interface UsbDevicepublic UsbDevice[] getConnectedDevices()
getConnectedDevices in interface UsbDevicepublic javax.json.JsonObject toJSON()
toJSON in interface OshiJsonObjectpublic int compareTo(UsbDevice usb)
compareTo in interface Comparable<UsbDevice>Copyright © 2010–2016 com.github.dblock. All rights reserved.