org.javimmutable.collections.cursors
Class ValueFunctionCursor.Start<T,F extends ValueFunction<T>,A extends ValueFunctionFactory<T,F>>
java.lang.Object
org.javimmutable.collections.cursors.AbstractStartCursor<T>
org.javimmutable.collections.cursors.ValueFunctionCursor.Start<T,F,A>
- All Implemented Interfaces:
- Iterable<T>, Cursor<T>
- Enclosing class:
- ValueFunctionCursor
protected static class ValueFunctionCursor.Start<T,F extends ValueFunction<T>,A extends ValueFunctionFactory<T,F>>
- extends AbstractStartCursor<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueFunctionCursor.Start
protected ValueFunctionCursor.Start(A factory)
next
@Nonnull
public Cursor<T> next()
- Description copied from interface:
Cursor
- Advances to the next (possibly first) value. Must always return a non-null Cursor.
A newly created Cursor must always point to "before" the first value because next() (or start()) must
always be called once before retrieving the first value. If the Cursor is already at the end
of its sequence then it should return a Cursor that will always return false for hasValue().
- Specified by:
next
in interface Cursor<T>
- Overrides:
next
in class AbstractStartCursor<T>
- Returns:
- Cursor for next position
createFunction
protected F createFunction()
Copyright © 2014 Burton Computer Corporation. All rights reserved.