Interface BooleanConsumer

  • All Superinterfaces:
    java.util.function.Consumer<java.lang.Boolean>
    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
    extends java.util.function.Consumer<java.lang.Boolean>
    A type-specific Consumer; provides methods to consume a primitive type both as object and as primitive.
    Since:
    8.0.0
    See Also:
    Consumer
    • Method Detail

      • accept

        void accept​(boolean t)
      • accept

        @Deprecated
        default void accept​(java.lang.Boolean t)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        accept in interface java.util.function.Consumer<java.lang.Boolean>
      • andThen

        @Deprecated
        default java.util.function.Consumer<java.lang.Boolean> andThen​(java.util.function.Consumer<? super java.lang.Boolean> after)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        andThen in interface java.util.function.Consumer<java.lang.Boolean>