Package oshi.hardware.common
Class AbstractUsbDevice
java.lang.Object
oshi.hardware.common.AbstractUsbDevice
- All Implemented Interfaces:
Comparable<UsbDevice>,UsbDevice
- Direct Known Subclasses:
AixUsbDevice,FreeBsdUsbDevice,LinuxUsbDevice,MacUsbDevice,OpenBsdUsbDevice,SolarisUsbDevice,WindowsUsbDevice
A USB device
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintOther devices connected to this hubgetName()Name of the USB deviceProduct ID of the USB deviceSerial number of the USB deviceA Unique Device ID of the USB device, such as the PnPDeviceID (Windows), Device Node Path (Linux), Registry Entry ID (macOS), or Device Node number (Unix)Vendor that manufactured the USB deviceID of the vendor that manufactured the USB devicetoString()
-
Constructor Details
-
AbstractUsbDevice
-
-
Method Details
-
getName
Description copied from interface:UsbDeviceName of the USB device -
getVendor
Description copied from interface:UsbDeviceVendor that manufactured the USB device -
getVendorId
Description copied from interface:UsbDeviceID of the vendor that manufactured the USB device- Specified by:
getVendorIdin interfaceUsbDevice- Returns:
- The vendor ID, a 4-digit hex string
-
getProductId
Description copied from interface:UsbDeviceProduct ID of the USB device- Specified by:
getProductIdin interfaceUsbDevice- Returns:
- The product ID, a 4-digit hex string
-
getSerialNumber
Description copied from interface:UsbDeviceSerial number of the USB device- Specified by:
getSerialNumberin interfaceUsbDevice- Returns:
- The serial number, if known
-
getUniqueDeviceId
Description copied from interface:UsbDeviceA Unique Device ID of the USB device, such as the PnPDeviceID (Windows), Device Node Path (Linux), Registry Entry ID (macOS), or Device Node number (Unix)- Specified by:
getUniqueDeviceIdin interfaceUsbDevice- Returns:
- The Unique Device ID
-
getConnectedDevices
Description copied from interface:UsbDeviceOther devices connected to this hub- Specified by:
getConnectedDevicesin interfaceUsbDevice- Returns:
- An
UnmodifiableListof other devices connected to this hub, if any, or an empty list if none
-
compareTo
- Specified by:
compareToin interfaceComparable<UsbDevice>
-
toString
-