Interface LongRangeAbortableConsumer

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 LongRangeAbortableConsumer
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(long first, long last)
    Provides a range to this consumer.
  • Method Details

    • accept

      boolean accept(long first, long last)
      Provides a range to this consumer. A false return value indicates that the application providing ranges to this consumer should not invoke it again. As consecutive calls to accept are made, delivered ranges are assumed to be non overlapping and increasing in their first value; in particular, the first of a range has to be strictly greater than the last of the previous range.
      Parameters:
      first - the range first value.
      last - the range last value, inclusive.
      Returns:
      false if don't want any more values after this one, true otherwise.