Class IntervalsSet.SubIntervalsIterator

java.lang.Object
org.apache.commons.math3.geometry.euclidean.oned.IntervalsSet.SubIntervalsIterator
All Implemented Interfaces:
Iterator<double[]>
Enclosing class:
IntervalsSet

private class IntervalsSet.SubIntervalsIterator extends Object implements Iterator<double[]>
Local iterator for sub-intervals.
  • Field Details

    • current

      private BSPTree<Euclidean1D> current
      Current node.
    • pending

      private double[] pending
      Sub-interval no yet returned.
  • Constructor Details

    • SubIntervalsIterator

      SubIntervalsIterator()
      Simple constructor.
  • Method Details

    • selectPending

      private void selectPending()
      Walk the tree to select the pending sub-interval.
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<double[]>
    • next

      public double[] next()
      Specified by:
      next in interface Iterator<double[]>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<double[]>