Class TakeWhileIterator<T>
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>
public final class TakeWhileIterator<T> extends java.lang.Object implements java.util.Iterator<T>
Iterates over the elements of the iterator until predicate returns false.- Since:
- 8.0
-
-
Constructor Summary
Constructors Constructor Description TakeWhileIterator(java.lang.Iterable<T> iterable, Predicate<? super T> predicate)
TakeWhileIterator(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
void
remove()
-