public final class ForEach<T> extends Object implements Iterable<T>
This ForEach class reverses that order and makes the code more readable, and allows easy application of visitors on iterables.
Example: forEach(iterable).filter(specification).map(function).visit(visitor)
| Modifier and Type | Method and Description | 
|---|---|
ForEach<T> | 
filter(Specification<? super T> specification)  | 
<TO> ForEach<TO> | 
flatten()  | 
static <T> ForEach<T> | 
forEach(Iterable<T> iterable)  | 
Iterator<T> | 
iterator()  | 
T | 
last()  | 
<TO> ForEach<TO> | 
map(Function<?,TO> function)  | 
<ThrowableType extends Throwable>  | 
visit(Visitor<T,ThrowableType> visitor)  |