Interface ThrowableLongConsumer

All Superinterfaces:
LongConsumer
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 ThrowableLongConsumer extends LongConsumer
Represents an operation that accepts a single long-valued argument and returns no result. This is the primitive type specialization of ThrowableConsumer for long. Unlike most other functional interfaces, LongConsumer is expected to operate via side-effects.

Permits checked exceptions unlike LongConsumer

This is a functional interface whose functional method is accept(long).

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    accept(long value)
    Performs this operation on the given argument.
    void
    acceptUnsafe(long value)
    Performs this operation on the given argument.

    Methods inherited from interface java.util.function.LongConsumer

    andThen
  • Method Details

    • acceptUnsafe

      void acceptUnsafe(long value) throws Throwable
      Performs this operation on the given argument.
      Parameters:
      value - the input argument
      Throws:
      Throwable - occurred during processing
    • accept

      default void accept(long value)
      Performs this operation on the given argument.
      Specified by:
      accept in interface LongConsumer
      Parameters:
      value - the input argument