Package org.HdrHistogram.packedarray
Class AbstractPackedArrayContext.NonZeroValuesIterator
java.lang.Object
org.HdrHistogram.packedarray.AbstractPackedArrayContext.NonZeroValuesIterator
- All Implemented Interfaces:
Iterator<IterationValue>
- Enclosing class:
AbstractPackedArrayContext
class AbstractPackedArrayContext.NonZeroValuesIterator
extends Object
implements Iterator<IterationValue>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final IterationValue(package private) long(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidfindFirstNonZeroValueVirtualIndexStartingAt(int startingVirtualIndex) booleanhasNext()next()voidremove()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
nextVirtualIndex
int nextVirtualIndex -
nextValue
long nextValue -
currentIterationValue
-
-
Constructor Details
-
NonZeroValuesIterator
NonZeroValuesIterator()
-
-
Method Details
-
findFirstNonZeroValueVirtualIndexStartingAt
private void findFirstNonZeroValueVirtualIndexStartingAt(int startingVirtualIndex) -
next
- Specified by:
nextin interfaceIterator<IterationValue>
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<IterationValue>
-
remove
public void remove()- Specified by:
removein interfaceIterator<IterationValue>
-