org.eclipse.higgins.idas.cp.rdf.util
Class NotNullIterator

java.lang.Object
  extended byorg.eclipse.higgins.idas.cp.rdf.util.ReadOnlyIterator
      extended byorg.eclipse.higgins.idas.cp.rdf.util.SelectingIterator
          extended byorg.eclipse.higgins.idas.cp.rdf.util.NotNullIterator
All Implemented Interfaces:
Iterator

public class NotNullIterator
extends SelectingIterator

An iterator that returns only all non-null elements from another iterator.

Author:
msabadello at parityinc dot net

Constructor Summary
NotNullIterator(Iterator iterator)
           
 
Method Summary
 boolean select(Object item)
           
 
Methods inherited from class org.eclipse.higgins.idas.cp.rdf.util.SelectingIterator
hasNext, next
 
Methods inherited from class org.eclipse.higgins.idas.cp.rdf.util.ReadOnlyIterator
remove
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotNullIterator

public NotNullIterator(Iterator iterator)
Method Detail

select

public boolean select(Object item)
Specified by:
select in class SelectingIterator