Modifier and Type | Field and Description |
---|---|
java.lang.Iterable<T> |
iterable |
Predicate.PredicateIterator<T> |
iterator |
Predicate<T> |
predicate |
Constructor and Description |
---|
PredicateIterable(java.lang.Iterable<T> iterable,
Predicate<T> predicate) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<T> |
iterator()
Returns an iterator.
|
void |
set(java.lang.Iterable<T> iterable,
Predicate<T> predicate) |
public java.lang.Iterable<T> iterable
public Predicate.PredicateIterator<T> iterator
public java.util.Iterator<T> iterator()
If Collections.allocateIterators
is false, the same iterator instance is returned each time this method is
called. Use the Predicate.PredicateIterator
constructor for nested or multithreaded iteration.
iterator
in interface java.lang.Iterable<T>