Interface LongConsumer

All Known Implementing Classes:
Functions.EmptyLongConsumer
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 LongConsumer
A functional interface (callback) that consumes a primitive long value.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(long t)
    Consume a primitive long input.
  • Method Details

    • accept

      void accept(long t) throws Throwable
      Consume a primitive long input.
      Parameters:
      t - the primitive long value
      Throws:
      Throwable - if the implementation wishes to throw any type of exception