Package com.persequor
Class IteratorUtils
java.lang.Object
com.persequor.IteratorUtils
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T,E extends Exception> 
 voideach(Iterable<T> iterable, ThrowingConsumer<T, E> consumer) Do action for each element
- 
Constructor Details- 
IteratorUtilspublic IteratorUtils()
 
- 
- 
Method Details- 
eachpublic static <T,E extends Exception> void each(Iterable<T> iterable, ThrowingConsumer<T, E> consumer) throws EDo action for each element- Type Parameters:
- T- type of element to process
- E- type of exception thrown by consumer
- Parameters:
- iterable- element to process
- consumer- action to perform with each element
- Throws:
- E- exception thrown by the provided consumer
 
 
-