Interface FunctionalInterfaces.Intx4Predicate

  • 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.Intx4Predicate
    Represents a predicate (boolean-valued function) of four integer arguments. This is a functional interface whose functional method is test(int,int,int,int) .
    • Method Detail

      • test

        boolean test​(int i,
                     int j,
                     int k,
                     int l)
        Returns true iff the predicate accepts the specified integers
        Parameters:
        i - a first integer
        j - a second integer
        k - a third integer
        l - a fourth integer
        Returns:
        true iff the predicate accepts the specified integers
      • select

        static <T> List<T> select​(T[][][][] vars,
                                  FunctionalInterfaces.Intx4Predicate p,
                                  List<T> list)
        Returns the specified list after any variable, at index (i,j,k,l), that satisfies the specified predicate have been added to it. Note that null values are simply discarded, if ever present.
        Parameters:
        vars - a 4-dimensional array of variables
        p - a predicate allowing us to test if a variable at index (i,j,k,l) must be added to the list
        list - a list where selected variables are added
        Returns:
        the specified list, after selected variables have been added