E
- is the generic type of the iterated
elements.public class FilteredIterable<E> extends Object implements Iterable<E>
Iterator
that adapts another Iterator
but only
iterates
the elements that are accepted
by a given
Filter
. FilteredIterator
. Please read according javadoc first.Modifier and Type | Field and Description |
---|---|
private Iterable<E> |
delegate
The actual
Iterable instance to adapt. |
private Filter<E> |
filter |
Constructor and Description |
---|
FilteredIterable(Iterable<E> delegate,
Filter<E> filter)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Iterator<E> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
private final Filter<E> filter
iterator()
Copyright © 2001–2014 mmm-Team. All rights reserved.