ca.uhn.hl7v2.util
Class FilterIterator<T>
java.lang.Object
ca.uhn.hl7v2.util.FilterIterator<T>
- All Implemented Interfaces:
- Iterator<T>
public class FilterIterator<T>
- extends Object
- implements Iterator<T>
|
Nested Class Summary |
static interface |
FilterIterator.Predicate<T>
Interface for evaluating whether an object should be returned by the iterator |
|
Method Summary |
boolean |
hasNext()
|
T |
next()
|
void |
remove()
Throws UnsupportedOperationException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterIterator
public FilterIterator(Iterator<T> iter,
FilterIterator.Predicate<T> predicate)
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<T>
next
public T next()
- Specified by:
next in interface Iterator<T>
remove
public void remove()
- Throws UnsupportedOperationException
- Specified by:
remove in interface Iterator<T>
Copyright © 2001-2012 University Health Network. All Rights Reserved.