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

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.UniqueExtendedIterator
All Implemented Interfaces:
ClosableIterator, ExtendedIterator, java.util.Iterator

public class UniqueExtendedIterator
extends WrappedIterator

A variant on the closable/extended iterator that filters out duplicate values. There is one complication that the value which filtering is done on might not be the actual value to be returned by the iterator.

Version:
$Revision: 1.5 $ on $Date: 2003/06/20 14:28:40 $
Author:
Dave Reynolds

Constructor Summary
UniqueExtendedIterator(java.util.Iterator underlying)
          constructor
 
Method Summary
 boolean hasNext()
          hasNext: defer to the base iterator
 java.lang.Object next()
          next: defer to the base iterator
 
Methods inherited from class com.hp.hpl.jena.util.iterator.WrappedIterator
close, close, create, remove
 
Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator
andThen, andThen, filterDrop, filterKeep, mapWith
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueExtendedIterator

public UniqueExtendedIterator(java.util.Iterator underlying)
constructor

Method Detail

hasNext

public boolean hasNext()
Description copied from class: WrappedIterator
hasNext: defer to the base iterator

Specified by:
hasNext in interface java.util.Iterator
Overrides:
hasNext in class WrappedIterator
See Also:
Iterator.hasNext()

next

public java.lang.Object next()
Description copied from class: WrappedIterator
next: defer to the base iterator

Specified by:
next in interface java.util.Iterator
Overrides:
next in class WrappedIterator
See Also:
Iterator.next()


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