- All Known Implementing Classes:
USBDeviceFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a predicate (boolean-valued function) of one argument, evaluated for a given USB device.
This is a functional interface whose functional method is matches(USBDevice).
-
Method Summary
Modifier and TypeMethodDescriptionbooleanEvaluates this predicate on the given USB device.static booleanmatchesAny(USBDevice device, List<USBDevicePredicate> predicates) Test if the USB devices matches any of the filter conditions.
-
Method Details
-
matches
Evaluates this predicate on the given USB device.- Parameters:
device- the USB device- Returns:
trueof the devices matches the predicate, otherwisefalse
-
matchesAny
Test if the USB devices matches any of the filter conditions.- Parameters:
device- the USB devicepredicates- a list of filter predicates- Returns:
trueif it matches,falseotherwise
-