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

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

public class IteratorCons<T>
extends Object
implements Iterator<T>, Iterable<T>

IteratorCons : the concatenation of two iterators.


Method Summary
static
<X> Iterator<X>
create(Iterator<? extends X> iter1, Iterator<? extends X> iter2)
           
 boolean hasNext()
           
 Iterator<T> iterator()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static <X> Iterator<X> create(Iterator<? extends X> iter1,
                                     Iterator<? extends X> iter2)

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>

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>


Licenced under the Apache License, Version 2.0