Module aeonics.core
Package aeonics.util

Interface Functions.BiPredicate<A,​B>

  • Type Parameters:
    A - first argument type
    B - second argument type
    All Superinterfaces:
    Functions.Predicate<A>
    All Known Subinterfaces:
    Functions.QuadriPredicate<A,​B,​C,​D>, Functions.TriPredicate<A,​B,​C>
    Enclosing class:
    Functions
    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 Functions.BiPredicate<A,​B>
    extends Functions.Predicate<A>
    Represents a predicate of two arguments.
    • Method Detail

      • test

        default boolean test​(A a)
                      throws java.lang.Exception
        Description copied from interface: Functions.Predicate
        Evaluates this predicate on the given argument.
        Specified by:
        test in interface Functions.Predicate<A>
        Parameters:
        a - the input argument
        Returns:
        true if the input argument matches the predicate
        Throws:
        java.lang.Exception - if an error happens
      • test

        boolean test​(A a,
                     B b)
              throws java.lang.Exception
        Evaluates this predicate on the given arguments.
        Parameters:
        a - the input argument
        b - the input argument
        Returns:
        true if the input arguments match the predicate
        Throws:
        java.lang.Exception - if an error happens