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) intFields 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()booleanhasNext()Methods inherited from class com.strobel.core.CollectionUtilities.AbstractIterator
iterator, next, removeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:
clonein classCollectionUtilities.AbstractIterator<T>
-
hasNext
public boolean hasNext()
-