java.lang.Object
com.linkedin.venice.utils.collections.NullSkippingIteratorWrapper<E>
- All Implemented Interfaces:
Iterator<E>
public class NullSkippingIteratorWrapper<E>
extends Object
This iterator traverses the entire backing iterator, while skipping over null entries.
-
Constructor Summary
Constructors
-
Method Summary
boolean
protected boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NullSkippingIteratorWrapper
public NullSkippingIteratorWrapper(Iterator<E> iterator)
-
Method Details
-
internalHasNext
protected boolean internalHasNext()
-
internalNext
protected E internalNext()
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<E>
-