Interface Ref1ToBooleanFunction<A>

Type Parameters:
A - An input parameter type
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 Ref1ToBooleanFunction<A>
A function that accepts 1 generic input parameter and returns a boolean.
Since:
1.2
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    apply(A a)
    Applies the function.
    Returns a Ref1ToBooleanFunction that represents !this.apply(...).
    static <A> Ref1ToBooleanFunction<A>
    Returns a Ref1ToBooleanFunction that represents !func.apply(...).
  • Method Details

    • apply

      boolean apply(A a)
      Applies the function.
      Parameters:
      a - An argument.
      Returns:
      The result.
    • negate

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

      static <A> Ref1ToBooleanFunction<A> not(Ref1ToBooleanFunction<A> func)
      Returns a Ref1ToBooleanFunction that represents !func.apply(...).
      Type Parameters:
      A - A function parameter type
      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.