Class NullSkippingIteratorWrapper<E>
- java.lang.Object
-
- com.linkedin.venice.utils.collections.NullSkippingIteratorWrapper<E>
-
- All Implemented Interfaces:
java.util.Iterator<E>
public class NullSkippingIteratorWrapper<E> extends java.lang.Object
This iterator traverses the entire backing iterator, while skipping over null entries.
-
-
Constructor Summary
Constructors Constructor Description NullSkippingIteratorWrapper(java.util.Iterator<E> iterator)
-
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
-
NullSkippingIteratorWrapper
public NullSkippingIteratorWrapper(java.util.Iterator<E> iterator)
-
-
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>
-
-