public class ProbeTable
extends java.lang.Object
Constructor and Description |
---|
ProbeTable() |
Modifier and Type | Method and Description |
---|---|
ProbeTable |
addProduct(int vendorId,
int productId,
java.lang.Class<? extends UsbSerialDriver> driverClass)
Adds or updates a (vendor, product) pair in the table.
|
java.lang.Class<? extends UsbSerialDriver> |
findDriver(int vendorId,
int productId)
Returns the driver for the given (vendor, product) pair, or
null
if no match. |
public ProbeTable addProduct(int vendorId, int productId, java.lang.Class<? extends UsbSerialDriver> driverClass)
vendorId
- the USB vendor idproductId
- the USB product iddriverClass
- the driver class responsible for this pairthis
, for chainingpublic java.lang.Class<? extends UsbSerialDriver> findDriver(int vendorId, int productId)
null
if no match.vendorId
- the USB vendor idproductId
- the USB product idnull