Package com.strobel.core
Class CollectionUtilities.AbstractIterator<T>
- java.lang.Object
-
- com.strobel.core.CollectionUtilities.AbstractIterator<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Iterator<T>
- Direct Known Subclasses:
CollectionUtilities.OfTypeIterator
,CollectionUtilities.SkipIterator
,CollectionUtilities.TakeIterator
,CollectionUtilities.WhereSelectIterableIterator
- Enclosing class:
- CollectionUtilities
private abstract static class CollectionUtilities.AbstractIterator<T> extends java.lang.Object implements java.lang.Iterable<T>, java.util.Iterator<T>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) T
next
(package private) int
state
(package private) static int
STATE_FINISHED
(package private) static int
STATE_HAS_NEXT
(package private) static int
STATE_NEED_NEXT
(package private) static int
STATE_UNINITIALIZED
(package private) long
threadId
-
Constructor Summary
Constructors Constructor Description AbstractIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CollectionUtilities.AbstractIterator<T>
clone()
abstract boolean
hasNext()
java.util.Iterator<T>
iterator()
T
next()
void
remove()
-
-
-
Field Detail
-
STATE_UNINITIALIZED
static final int STATE_UNINITIALIZED
- See Also:
- Constant Field Values
-
STATE_NEED_NEXT
static final int STATE_NEED_NEXT
- See Also:
- Constant Field Values
-
STATE_HAS_NEXT
static final int STATE_HAS_NEXT
- See Also:
- Constant Field Values
-
STATE_FINISHED
static final int STATE_FINISHED
- See Also:
- Constant Field Values
-
threadId
long threadId
-
state
int state
-
next
T next
-
-
Method Detail
-
clone
protected abstract CollectionUtilities.AbstractIterator<T> clone()
- Overrides:
clone
in classjava.lang.Object
-
hasNext
public abstract boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<T>
-
iterator
@NotNull public java.util.Iterator<T> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<T>
-
remove
public final void remove()
- Specified by:
remove
in interfacejava.util.Iterator<T>
-
-