Interface Ref0ToBooleanFunction

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 Ref0ToBooleanFunction
A function that accepts 0 generic input parameters and returns a boolean.
Since:
1.2
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Applies the function.
    Returns a Ref0ToBooleanFunction that represents !this.apply(...).
    Returns a Ref0ToBooleanFunction that represents !func.apply(...).
  • Method Details

    • apply

      boolean apply()
      Applies the function.
      Returns:
      The result.
    • negate

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

      Returns a Ref0ToBooleanFunction that represents !func.apply(...).
      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.