org.javimmutable.collections.cursors
Class ValueFunctionCursor.Start<T,F extends ValueFunction<T>,A extends ValueFunctionFactory<T,F>>

java.lang.Object
  extended by org.javimmutable.collections.cursors.AbstractStartCursor<T>
      extended by 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>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.javimmutable.collections.Cursor
Cursor.NotStartedException, Cursor.NoValueException
 
Constructor Summary
protected ValueFunctionCursor.Start(A factory)
           
 
Method Summary
protected  F createFunction()
           
 Cursor<T> next()
          Advances to the next (possibly first) value.
 
Methods inherited from class org.javimmutable.collections.cursors.AbstractStartCursor
getValue, hasValue, iterator, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueFunctionCursor.Start

protected ValueFunctionCursor.Start(A factory)
Method Detail

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.