ca.uhn.hl7v2.util
Class FilterIterator<T>

java.lang.Object
  extended by ca.uhn.hl7v2.util.FilterIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>

public class FilterIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>


Nested Class Summary
static interface FilterIterator.Predicate<T>
          Interface for evaluating whether an object should be returned by the iterator
 
Constructor Summary
FilterIterator(java.util.Iterator<T> iter, FilterIterator.Predicate<T> predicate)
           
 
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
 

Constructor Detail

FilterIterator

public FilterIterator(java.util.Iterator<T> iter,
                      FilterIterator.Predicate<T> predicate)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()
Specified by:
next in interface java.util.Iterator<T>

remove

public void remove()
Throws UnsupportedOperationException

Specified by:
remove in interface java.util.Iterator<T>


Copyright © 2001-2011 University Health Network. All Rights Reserved.