Interface UsbDevicePredicate
- 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(@NotNull UsbDevice device, @NotNull 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
static boolean matchesAny(@NotNull @NotNull UsbDevice device, @NotNull @NotNull List<UsbDevicePredicate> predicates) 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
-