Class IntervalsSet.SubIntervalsIterator

  • All Implemented Interfaces:
    java.util.Iterator<double[]>
    Enclosing class:
    IntervalsSet

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

      Fields 
      Modifier and Type Field Description
      private BSPTree<Euclidean1D> current
      Current node.
      private double[] pending
      Sub-interval no yet returned.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      double[] next()
      void remove()
      private void selectPending()
      Walk the tree to select the pending sub-interval.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • pending

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

      • SubIntervalsIterator

        SubIntervalsIterator()
        Simple constructor.
    • Method Detail

      • selectPending

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

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

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

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