Package org.midheaven.collections
Class PipeEnumerator<Original,Final,State>
java.lang.Object
org.midheaven.collections.PipeEnumerator<Original,Final,State>
- All Implemented Interfaces:
Enumerator<Final>
-
Method Details
-
moveNext
public boolean moveNext()Description copied from interface:EnumeratorMove the enumerator to the next item. All enumerator are create positioned before the first item.- Specified by:
moveNextin interfaceEnumerator<Original>- Returns:
- true if the move was successful, and
Enumerator.current()is safe to call.
-
current
Description copied from interface:EnumeratorThe selected item. If this method is called before calling moveNext, or no current element exists, anIllegalStateExceptionis thrown.- Specified by:
currentin interfaceEnumerator<Original>- Returns:
- the current element
-
length
Description copied from interface:Enumerator- Specified by:
lengthin interfaceEnumerator<Original>- Returns:
- The
Lengthof theEnumerator
-