Class ArrayBackedNullSkippingIterator<E>
- java.lang.Object
-
- com.linkedin.venice.utils.collections.ArrayBackedNullSkippingIterator<E>
-
- All Implemented Interfaces:
java.util.Iterator<E>
public class ArrayBackedNullSkippingIterator<E> extends java.lang.Object
This iterator traverses the entire backing array, while skipping over null entries.
-
-
Constructor Summary
Constructors Constructor Description ArrayBackedNullSkippingIterator(E[] array)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
protected boolean
internalHasNext()
protected E
internalNext()
E
next()
-
-
-
Constructor Detail
-
ArrayBackedNullSkippingIterator
public ArrayBackedNullSkippingIterator(E[] array)
-
-
Method Detail
-
internalHasNext
protected boolean internalHasNext()
-
internalNext
protected E internalNext()
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<E>
-
next
public E next()
- Specified by:
next
in interfacejava.util.Iterator<E>
-
-