org.eclipse.net4j.util.collection
Class PredicateIterator<T>
java.lang.Object
org.eclipse.net4j.util.collection.AbstractIterator<T>
org.eclipse.net4j.util.collection.AbstractFilteredIterator<T>
org.eclipse.net4j.util.collection.PredicateIterator<T>
- All Implemented Interfaces:
- Iterator<T>
- public class PredicateIterator<T>
- extends AbstractFilteredIterator<T>
- Since:
- 3.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PredicateIterator
public PredicateIterator(Iterator<T> delegate,
Predicate<? super T> predicate)
getPredicate
public Predicate<? super T> getPredicate()
isValid
protected boolean isValid(T element)
- Specified by:
isValid
in class AbstractFilteredIterator<T>
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.