Class DeviceProductRestriction

  • All Implemented Interfaces:
    FirmwareRestriction

    public class DeviceProductRestriction
    extends java.lang.Object
    implements FirmwareRestriction
    This class is used to check if a device has the proper product id for the target firmware.
    • Constructor Detail

      • DeviceProductRestriction

        public DeviceProductRestriction​(java.util.List<FWFirmwareDevice> supported)
    • Method Detail

      • meetsRestriction

        public boolean meetsRestriction​(Device d)
        Description copied from interface: FirmwareRestriction
        This will be called by the firmware downloading functions. If the firmware does not meet the requirements for this device it should return false.
        Specified by:
        meetsRestriction in interface FirmwareRestriction
        Parameters:
        d - Device to apply the restriction to.
        Returns:
        True if the restriction is met (or doesn't apply), false otherwise.