Interface LongAbortableConsumer

All Known Implementing Classes:
SinkFiller
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 LongAbortableConsumer
Note this is similar to java.util.function.LongPredicate; we don't use that since it could create confusion as for intended semantics for use.
  • Method Summary

    Modifier and Type Method Description
    boolean accept​(long v)
    Provides a value to this consumer.
  • Method Details

    • accept

      boolean accept​(long v)
      Provides a value to this consumer. A false return value indicates that the application providing values to this consumer should not invoke it again.
      Parameters:
      v - the value
      Returns:
      false if don't want any more values after this one, true otherwise.