Class IntervalsSet.SubIntervalsIterator
- java.lang.Object
-
- org.apache.commons.math3.geometry.euclidean.oned.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.
-
Constructor Summary
Constructors Constructor Description SubIntervalsIterator()
Simple constructor.
-
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.
-
-
-
Field Detail
-
current
private BSPTree<Euclidean1D> current
Current node.
-
pending
private double[] pending
Sub-interval no yet returned.
-
-
Method Detail
-
selectPending
private void selectPending()
Walk the tree to select the pending sub-interval.
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<double[]>
-
next
public double[] next()
- Specified by:
next
in interfacejava.util.Iterator<double[]>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<double[]>
-
-