Interface BooleanFunction<R>

Type Parameters:
R - the type of the result of the function
All Superinterfaces:
Function<Boolean,R>
All Known Subinterfaces:
BooleanUnaryOperator
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 BooleanFunction<R> extends Function<Boolean,R>
Represents a function that accepts a boolean argument and produces result of specified type. This is the primitive type specialization of UnaryOperator for boolean.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(boolean argument)
    Applies this function to the given argument.
    default R
    apply(Boolean argument)
     

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      R apply(boolean argument)
      Applies this function to the given argument.
      Parameters:
      argument - the function argument
      Returns:
      the function result
    • apply

      default R apply(Boolean argument)
      Specified by:
      apply in interface Function<Boolean,R>