Interface AbortableRangeConsumer


public interface AbortableRangeConsumer
Results comprised of multiple, ordered ranges are provided via this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(int begin, int end)
    Deliver a single range.
  • Method Details

    • accept

      boolean accept(int begin, int end)
      Deliver a single range. Methods receiving a RangeConsumer should call accept on it for non-empty, disjoint ranges. Calls should be made in increasing order of values contained in the ranges.
      Parameters:
      begin - first value of the range to add.
      end - one past the last value in the range to add (ie, end is exclusive).
      Returns:
      false if no more ranges are desired, true otherwise.