Package org.basex.util
Interface Checks<T>
- Type Parameters:
T- the type of the input to the predicate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for boolean array checks.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturnstrueif all value checks are successful.default booleanReturnstrueif all value checks are successful.default booleanReturnstrueif at least one value check is successful.default booleanReturnstrueif at least one value check is successful.default intReturns the index of the first successful check.default intReturns the index of the first successful check.booleanReturns the result of a check.
-
Method Details
-
any
Returnstrueif at least one value check is successful.- Parameters:
values- values to check- Returns:
- result of check
-
all
Returnstrueif all value checks are successful.- Parameters:
values- values to check- Returns:
- result of check
-
index
Returns the index of the first successful check.- Parameters:
values- values to check- Returns:
- index,
-1otherwise
-
any
Returnstrueif at least one value check is successful.- Parameters:
values- values to check- Returns:
- result of check
-
all
Returnstrueif all value checks are successful.- Parameters:
values- values to check- Returns:
- result of check
-
index
Returns the index of the first successful check.- Parameters:
values- values to check- Returns:
- index,
-1otherwise
-
ok
Returns the result of a check.- Parameters:
value- single value- Returns:
- result of check
-