Class FreeBsdUsbDevice

java.lang.Object
oshi.hardware.common.AbstractUsbDevice
oshi.hardware.platform.unix.freebsd.FreeBsdUsbDevice
All Implemented Interfaces:
Comparable<oshi.hardware.UsbDevice>, oshi.hardware.UsbDevice

@Immutable public class FreeBsdUsbDevice extends oshi.hardware.common.AbstractUsbDevice
FreeBsd Usb Device
  • Constructor Summary

    Constructors
    Constructor
    Description
    FreeBsdUsbDevice(String name, String vendor, String vendorId, String productId, String serialNumber, String uniqueDeviceId, List<oshi.hardware.UsbDevice> connectedDevices)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<oshi.hardware.UsbDevice>
    getUsbDevices(boolean tree)
    Instantiates a list of UsbDevice objects, representing devices connected via a usb port (including internal devices).

    Methods inherited from class oshi.hardware.common.AbstractUsbDevice

    addDevicesToList, compareTo, getConnectedDevices, getName, getProductId, getSerialNumber, getUniqueDeviceId, getVendor, getVendorId, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FreeBsdUsbDevice

      public FreeBsdUsbDevice(String name, String vendor, String vendorId, String productId, String serialNumber, String uniqueDeviceId, List<oshi.hardware.UsbDevice> connectedDevices)
  • Method Details

    • getUsbDevices

      public static List<oshi.hardware.UsbDevice> getUsbDevices(boolean tree)
      Instantiates a list of UsbDevice objects, representing devices connected via a usb port (including internal devices).

      If the value of tree is true, the top level devices returned from this method are the USB Controllers; connected hubs and devices in its device tree share that controller's bandwidth. If the value of tree is false, USB devices (not controllers) are listed in a single flat list.

      Parameters:
      tree - If true, returns a list of controllers, which requires recursive iteration of connected devices. If false, returns a flat list of devices excluding controllers.
      Returns:
      a list of UsbDevice objects.