Alignment API and Server 4.10 (2228M)
- java.lang.Object
-
- fr.inrialpes.exmo.align.impl.ConcatenatedIterator<O>
-
- All Implemented Interfaces:
- java.lang.Iterable<O>, java.util.Iterator<O>
public final class ConcatenatedIterator<O>
extends java.lang.Object
implements java.util.Iterator<O>, java.lang.Iterable<O>
This class builds a composite iterator from two iterators
This helps writing more concise code.
This is the naive implementation (can be optimized)
- Version:
- $Id: ConcatenatedIterator.java 1996 2014-11-23 16:30:55Z euzenat $
- Author:
- Jérôme Euzenat
-
-
Field Summary
Fields
Modifier and Type |
Field and Description |
private java.util.Iterator<? extends O> |
it1 |
private java.util.Iterator<? extends O> |
it2 |
-
Constructor Summary
Constructors
Constructor and Description |
ConcatenatedIterator(java.util.Iterator<? extends O> i1,
java.util.Iterator<? extends O> i2) |
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<O>
Alignment API and Server 4.10 (2228M)
(C) INRIA & friends, 2003-2020