Interface BooleanToBooleanFunction

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 interface BooleanToBooleanFunction
A function that accepts a boolean and returns a boolean.
Since:
1.2
  • Method Details

    • apply

      boolean apply(boolean e)
      Applies the function.
      Parameters:
      e - The argument.
      Returns:
      The result.
    • identity

      static BooleanToBooleanFunction identity()
      Returns the boolean identity function. The identity function always returns the input argument.
      Returns:
      The identity function.
    • negate

      default BooleanToBooleanFunction negate()
      Returns a BooleanToBooleanFunction that represents !this.apply(e).
      Returns:
      The logical negation of this function.
    • not

      Returns a BooleanToBooleanFunction that represents !func.apply(e).
      Parameters:
      func - The function to negate. Must not be null.
      Returns:
      The logical negation of the specified function.
      Throws:
      NullPointerException - If the specified function is null.