org.openjena.atlas.iterator
Class IteratorTruncate<T>

java.lang.Object
  extended by org.openjena.atlas.iterator.IteratorTruncate<T>
All Implemented Interfaces:
Iterator<T>

public class IteratorTruncate<T>
extends Object
implements Iterator<T>

Iterate while a condition return true, then stop


Nested Class Summary
static interface IteratorTruncate.Test
           
 
Constructor Summary
IteratorTruncate(IteratorTruncate.Test test, Iterator<T> iter)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorTruncate

public IteratorTruncate(IteratorTruncate.Test test,
                        Iterator<T> iter)
Method Detail

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()
Specified by:
remove in interface Iterator<T>

close

public void close()


Licenced under the Apache License, Version 2.0