Interface RangeConsumer


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

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

    • accept

      void accept(int begin, int end)
      Deliver a single range. Methods receiving a RangeConsumer should call accept on it for 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).