Class FunctionIterator<T,V> 
java.lang.Object
org.springframework.integration.util.FunctionIterator<T,V> 
- Type Parameters:
- T- inbound iterator element type.
- V- outbound element type.
- All Implemented Interfaces:
- AutoCloseable,- Iterator<V>,- CloseableIterator<V>
- 
Constructor SummaryConstructorsConstructorDescriptionFunctionIterator(AutoCloseable closeable, Iterable<T> iterable, Function<? super T, ? extends V> function) Construct an instance with the provided root object, iterable and function.FunctionIterator(AutoCloseable closeable, Iterator<T> newIterator, Function<? super T, ? extends V> function) Construct an instance with the provided root object, iterator and function.Construct an instance with the provided iterable and function.Construct an instance with the provided iterator and function.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining, remove
- 
Constructor Details- 
FunctionIterator
- 
FunctionIteratorpublic FunctionIterator(@Nullable AutoCloseable closeable, Iterable<T> iterable, Function<? super T, ? extends V> function) Construct an instance with the provided root object, iterable and function.- Parameters:
- closeable- an- AutoCloseableto close when iteration is complete.
- iterable- the iterable.
- function- the function.
- Since:
- 5.0.7
 
- 
FunctionIterator
- 
FunctionIteratorpublic FunctionIterator(@Nullable AutoCloseable closeable, Iterator<T> newIterator, Function<? super T, ? extends V> function) Construct an instance with the provided root object, iterator and function.- Parameters:
- closeable- an- AutoCloseableto close when iteration is complete.
- newIterator- the iterator.
- function- the function.
- Since:
- 5.0.7
 
 
- 
- 
Method Details- 
hasNext
- 
next
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- CloseableIterator<T>
 
 
-