Package org.HdrHistogram
Class DoubleAllValuesIterator
- java.lang.Object
-
- org.HdrHistogram.DoubleAllValuesIterator
-
- All Implemented Interfaces:
java.util.Iterator<DoubleHistogramIterationValue>
public class DoubleAllValuesIterator extends java.lang.Object implements java.util.Iterator<DoubleHistogramIterationValue>
Used for iterating throughDoubleHistogram
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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) DoubleHistogram
histogram
private AllValuesIterator
integerAllValuesIterator
private DoubleHistogramIterationValue
iterationValue
-
Constructor Summary
Constructors Constructor Description DoubleAllValuesIterator(DoubleHistogram histogram)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
DoubleHistogramIterationValue
next()
void
remove()
void
reset()
Reset iterator for re-use in a fresh iteration over the same histogram data set.
-
-
-
Field Detail
-
integerAllValuesIterator
private final AllValuesIterator integerAllValuesIterator
-
iterationValue
private final DoubleHistogramIterationValue iterationValue
-
histogram
DoubleHistogram histogram
-
-
Constructor Detail
-
DoubleAllValuesIterator
public DoubleAllValuesIterator(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:
hasNext
in interfacejava.util.Iterator<DoubleHistogramIterationValue>
-
next
public DoubleHistogramIterationValue next()
- Specified by:
next
in interfacejava.util.Iterator<DoubleHistogramIterationValue>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<DoubleHistogramIterationValue>
-
-