org.openjena.atlas.iterator
Class IteratorCons<T>
java.lang.Object
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.
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