Package org.HdrHistogram
Class DoubleRecordedValuesIterator
- java.lang.Object
-
- org.HdrHistogram.DoubleRecordedValuesIterator
-
- All Implemented Interfaces:
Iterator<DoubleHistogramIterationValue>
public class DoubleRecordedValuesIterator extends Object implements Iterator<DoubleHistogramIterationValue>
Used for iterating throughDoubleHistogramvalues values using the finest granularity steps supported by the underlying representation. The iteration steps through all possible unit value levels, regardless of whether or not there were recorded values for that value level, and terminates when all recorded histogram values are exhausted.
-
-
Constructor Summary
Constructors Constructor Description DoubleRecordedValuesIterator(DoubleHistogram histogram)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()DoubleHistogramIterationValuenext()voidremove()voidreset()Reset iterator for re-use in a fresh iteration over the same histogram data set.-
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
-
-
-
-
Constructor Detail
-
DoubleRecordedValuesIterator
public DoubleRecordedValuesIterator(DoubleHistogram histogram)
- Parameters:
histogram- The histogram this iterator will operate on
-
-
Method Detail
-
reset
public void reset()
Reset iterator for re-use in a fresh iteration over the same histogram data set.
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<DoubleHistogramIterationValue>
-
next
public DoubleHistogramIterationValue next()
- Specified by:
nextin interfaceIterator<DoubleHistogramIterationValue>
-
remove
public void remove()
- Specified by:
removein interfaceIterator<DoubleHistogramIterationValue>
-
-