|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.hp.hpl.jena.util.ConcatenatedNodeIterator
An iterator that represents the concatenation of two individual RDF Node iterators. The concatenated iterator will range over the elements of the first iterator, followed by the elements of the second.
| Constructor Summary | |
ConcatenatedNodeIterator(NodeIterator iter0,
NodeIterator iter1)
Construct an iterator that is the concatenation of the two given iterators. |
|
| Method Summary | |
void |
close()
Close the concatenated iterator, which has the effect of closing both of the underlying iterators. |
boolean |
hasNext()
Returns true if the iteration has more elements. |
RDFNode |
next()
Returns the next element in the interation. |
void |
remove()
Removes from the underlying collection the last element returned by the iterator (optional operation). |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConcatenatedNodeIterator(NodeIterator iter0,
NodeIterator iter1)
iter0 - The first iterator. Elements of this iterator will appear
first in the elements read from the concatenation.iter1 - The second iterator. Elements of this iterator will appear
second in the elements read from the concatenation.| Method Detail |
public boolean hasNext()
throws RDFException
hasNext in interface NodeIteratorRDFException - Generic RDF exception.
public RDFNode next()
throws RDFException
next in interface NodeIteratorNoSuchElementException - - iteration has no more elements.
RDFException - Generic RDF exception.public void remove()
remove in interface NodeIteratorjava.lang.UnsupportedOperationException - - if the remove operation is not
supported by this Iterator.
java.lang.IllegalStateException - - if the next method has not yet been
called, or the remove method has already been called after the
last call to the next method.
public void close()
throws RDFException
close in interface NodeIteratorRDFException - Generic RDF exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||