| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | evaluate(T arg0)
Returns: true if the item matches the criteria and should be included in the iterator's items |
| evaluate | back to summary |
|---|---|
public boolean evaluate(T arg0)
| |
| Modifier and Type | Field and Description |
|---|---|
| public Iterable | |
| public Predicate. | |
| public Predicate |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Iterator | |
| public void |
| iterable | back to summary |
|---|---|
| public Iterable<T> iterable | |
| iterator | back to summary |
|---|---|
| public Predicate. | |
| predicate | back to summary |
|---|---|
| public Predicate<T> predicate | |
| PredicateIterable | back to summary |
|---|---|
| public PredicateIterable(Iterable<T> iterable, Predicate<T> predicate) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Returns an iterator. Remove is supported.
If
| |
| set | back to summary |
|---|---|
| public void set(Iterable<T> iterable, Predicate<T> predicate) | |
| Modifier and Type | Field and Description |
|---|---|
| public boolean | |
| public Iterator | |
| public T | |
| public boolean | |
| public Predicate |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public T | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| public void | |
| public void |
| end | back to summary |
|---|---|
| public boolean end | |
| iterator | back to summary |
|---|---|
| public Iterator<T> iterator | |
| next | back to summary |
|---|---|
| public T next | |
| peeked | back to summary |
|---|---|
| public boolean peeked | |
| predicate | back to summary |
|---|---|
| public Predicate<T> predicate | |
| PredicateIterator | back to summary |
|---|---|
| public PredicateIterator(final Iterable<T> iterable, final Predicate<T> predicate) | |
| PredicateIterator | back to summary |
|---|---|
| public PredicateIterator(final Iterator<T> iterator, final Predicate<T> predicate) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |
| set | back to summary |
|---|---|
| public void set(final Iterable<T> iterable, final Predicate<T> predicate) | |
| set | back to summary |
|---|---|
| public void set(final Iterator<T> iterator, final Predicate<T> predicate) | |