Interface BooleanConsumer

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 BooleanConsumer
This interface is similar to the java.util interface Consumer. Difference is, that it limits the type to a primitive, non-nullable boolean.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(boolean value)
    Performs this operation on the given argument.
  • Method Details

    • accept

      void accept(boolean value)
      Performs this operation on the given argument.
      Parameters:
      value - the input argument