com.hp.hpl.jena.util.iterator
Class FilterIterator

java.lang.Object
  extended bycom.hp.hpl.jena.util.iterator.NiceIterator
      extended bycom.hp.hpl.jena.util.iterator.WrappedIterator
          extended bycom.hp.hpl.jena.util.iterator.FilterIterator
All Implemented Interfaces:
ClosableIterator, ExtendedIterator, java.util.Iterator
Direct Known Subclasses:
TripleMatchIterator

public class FilterIterator
extends WrappedIterator

Creates a sub-Iterator by filtering.

Version:
Release='$Name: $' Revision='$Revision: 1.5 $' Date='$Date: 2003/08/27 13:07:54 $'
Author:
jjc

Constructor Summary
FilterIterator(Filter fl, java.util.Iterator e)
          Creates a sub-Iterator.
 
Method Summary
 boolean hasNext()
          Are there any more acceptable objects.
 java.lang.Object next()
          The next acceptable object in the iterator.
 void remove()
          remove's the member from the underlying Iterator; hasNext() may not be called between calls to next() and remove().
 
Methods inherited from class com.hp.hpl.jena.util.iterator.WrappedIterator
close, close, create
 
Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator
andThen, andThen, filterDrop, filterKeep, mapWith, removeNext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterIterator

public FilterIterator(Filter fl,
                      java.util.Iterator e)
Creates a sub-Iterator.

Parameters:
fl - An object is included if it is accepted by this Filter.
e - The parent Iterator.
Method Detail

hasNext

public boolean hasNext()
Are there any more acceptable objects.

Specified by:
hasNext in interface java.util.Iterator
Overrides:
hasNext in class WrappedIterator
Returns:
true if there is another acceptable object.

remove

public void remove()
remove's the member from the underlying Iterator; hasNext() may not be called between calls to next() and remove().

Specified by:
remove in interface java.util.Iterator
Overrides:
remove in class WrappedIterator

next

public java.lang.Object next()
The next acceptable object in the iterator.

Specified by:
next in interface java.util.Iterator
Overrides:
next in class WrappedIterator
Returns:
The next acceptable object.


Copyright © 2000-2003 Hewlett-Packard. All Rights Reserved.