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
-
Method Summary
Modifier and TypeMethodDescriptionint
Other 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:UsbDevice
Name of the USB device -
getVendor
Description copied from interface:UsbDevice
Vendor that manufactured the USB device -
getVendorId
Description copied from interface:UsbDevice
ID of the vendor that manufactured the USB device- Specified by:
getVendorId
in interfaceUsbDevice
- Returns:
- The vendor ID, a 4-digit hex string
-
getProductId
Description copied from interface:UsbDevice
Product ID of the USB device- Specified by:
getProductId
in interfaceUsbDevice
- Returns:
- The product ID, a 4-digit hex string
-
getSerialNumber
Description copied from interface:UsbDevice
Serial number of the USB device- Specified by:
getSerialNumber
in interfaceUsbDevice
- Returns:
- The serial number, if known
-
getUniqueDeviceId
Description copied from interface:UsbDevice
A 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:
getUniqueDeviceId
in interfaceUsbDevice
- Returns:
- The Unique Device ID
-
getConnectedDevices
Description copied from interface:UsbDevice
Other devices connected to this hub- Specified by:
getConnectedDevices
in interfaceUsbDevice
- Returns:
- An
UnmodifiableList
of other devices connected to this hub, if any, or an empty list if none
-
compareTo
- Specified by:
compareTo
in interfaceComparable<UsbDevice>
-
toString
-