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>currentCurrent node.private double[]pendingSub-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 booleanhasNext()double[]next()voidremove()private voidselectPending()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:
hasNextin interfacejava.util.Iterator<double[]>
-
next
public double[] next()
- Specified by:
nextin interfacejava.util.Iterator<double[]>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<double[]>
-
-