public class DoubleRecordedValuesIterator extends java.lang.Object implements java.util.Iterator<DoubleHistogramIterationValue>
DoubleHistogram
values 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.Modifier and Type | Field and Description |
---|---|
(package private) DoubleHistogram |
histogram |
private RecordedValuesIterator |
integerRecordedValuesIterator |
private DoubleHistogramIterationValue |
iterationValue |
Constructor and Description |
---|
DoubleRecordedValuesIterator(DoubleHistogram histogram) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
DoubleHistogramIterationValue |
next() |
void |
remove() |
void |
reset()
Reset iterator for re-use in a fresh iteration over the same histogram data set.
|
private final RecordedValuesIterator integerRecordedValuesIterator
private final DoubleHistogramIterationValue iterationValue
DoubleHistogram histogram
public DoubleRecordedValuesIterator(DoubleHistogram histogram)
histogram
- The histogram this iterator will operate onpublic void reset()
public boolean hasNext()
hasNext
in interface java.util.Iterator<DoubleHistogramIterationValue>
public DoubleHistogramIterationValue next()
next
in interface java.util.Iterator<DoubleHistogramIterationValue>
public void remove()
remove
in interface java.util.Iterator<DoubleHistogramIterationValue>