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 Detail

      • accept

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