Package com.strobel.core
Class CollectionUtilities.TakeIterator<T>
java.lang.Object
com.strobel.core.CollectionUtilities.AbstractIterator<T>
com.strobel.core.CollectionUtilities.TakeIterator<T>
- Enclosing class:
CollectionUtilities
private static final class CollectionUtilities.TakeIterator<T>
extends CollectionUtilities.AbstractIterator<T>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int
(package private) int
Fields inherited from class com.strobel.core.CollectionUtilities.AbstractIterator
next, state, STATE_FINISHED, STATE_HAS_NEXT, STATE_NEED_NEXT, STATE_UNINITIALIZED, threadId
-
Constructor Summary
ConstructorsConstructorDescriptionTakeIterator
(Iterable<T> source, int takeCount) TakeIterator
(Iterable<T> source, int takeCount, Predicate<? super T> takeFilter) TakeIterator
(Iterable<T> source, Predicate<? super T> takeFilter) -
Method Summary
Modifier and TypeMethodDescriptionprotected CollectionUtilities.TakeIterator
<T> clone()
boolean
hasNext()
Methods inherited from class com.strobel.core.CollectionUtilities.AbstractIterator
iterator, next, remove
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
source
-
takeCount
final int takeCount -
takeFilter
-
iterator
-
takesRemaining
int takesRemaining
-
-
Constructor Details
-
TakeIterator
-
TakeIterator
-
TakeIterator
-
-
Method Details
-
clone
- Specified by:
clone
in classCollectionUtilities.AbstractIterator<T>
-
hasNext
public boolean hasNext()
-