Package org.xcsp.common
Interface FunctionalInterfaces.Intx5Predicate
-
- Enclosing interface:
- FunctionalInterfaces
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface FunctionalInterfaces.Intx5Predicate
Represents a predicate (boolean-valued function) of five integer arguments. This is a functional interface whose functional method istest(int,int,int,int,int).
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T> List<T>select(T[][][][][] vars, FunctionalInterfaces.Intx5Predicate p, List<T> list)Returns the specified list after any variable, at index(i,j,k,l,m), that satisfies the specified predicate have been added to it.booleantest(int i, int j, int k, int l, int m)Returnstrueiff the predicate accepts the specified integers
-
-
-
Method Detail
-
test
boolean test(int i, int j, int k, int l, int m)Returnstrueiff the predicate accepts the specified integers- Parameters:
i- a first integerj- a second integerk- a third integerl- a fourth integerm- a fifth integer- Returns:
trueiff the predicate accepts the specified integers
-
select
static <T> List<T> select(T[][][][][] vars, FunctionalInterfaces.Intx5Predicate p, List<T> list)
Returns the specified list after any variable, at index(i,j,k,l,m), that satisfies the specified predicate have been added to it. Note thatnullvalues are simply discarded, if ever present.- Parameters:
vars- a 5-dimensional array of variablesp- a predicate allowing us to test if a variable at index(i,j,k,l,m)must be added to the listlist- a list where selected variables are added- Returns:
- the specified list, after selected variables have been added
-
-