fr.inrialpes.exmo.align.impl
Class ConcatenatedIterator
java.lang.Object
fr.inrialpes.exmo.align.impl.ConcatenatedIterator
- All Implemented Interfaces:
- Iterator
public final class ConcatenatedIterator
- extends Object
- implements Iterator
This class builds a composite iterator from two iterators
This helps writing more concise code especially since
the OWL API does not impements Iterator getProperties() in OWL Ontologies
This is the naive implementation (can be optimized)
- Version:
- $Id: ConcatenatedIterator.java 334 2006-10-05 08:55:22Z euzenat $
- Author:
- Jérôme Euzenat
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
it1
private Iterator it1
it2
private Iterator it2
ConcatenatedIterator
public ConcatenatedIterator(Iterator i1,
Iterator i2)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
throws NoSuchElementException
- Specified by:
next
in interface Iterator
- Throws:
NoSuchElementException
remove
public void remove()
throws UnsupportedOperationException
- Specified by:
remove
in interface Iterator
- Throws:
UnsupportedOperationException
(C) INRIA & friends, 2003-2008