- java.lang.Object
-
- com.ihr.xbrl.util.JoinedIterator<E>
-
- Type Parameters:
E
- the element type
- All Implemented Interfaces:
- java.util.Iterator<E>
public class JoinedIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
Joins two iterators in one iterator that will cycle the first iterator and when finished this
will continue with the second iterator.
- Author:
- Ignacio
-
-
Constructor Summary
Constructors
Constructor and Description |
JoinedIterator(java.util.Iterator<? extends E> iter1,
java.util.Iterator<? extends E> iter2)
Instantiates a new joined iterator.
|
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
Constructor Detail
-
JoinedIterator
public JoinedIterator(java.util.Iterator<? extends E> iter1,
java.util.Iterator<? extends E> iter2)
Instantiates a new joined iterator.
- Parameters:
iter1
- the iter 1
iter2
- the iter 2
-
Method Detail
-
hasNext
public boolean hasNext()
Checks for next.
- Specified by:
hasNext
in interface java.util.Iterator<E>
- Returns:
- true, if successful
-
next
public E next()
Next.
- Specified by:
next
in interface java.util.Iterator<E>
- Returns:
- the e
-
remove
public void remove()
Removes the.
- Specified by:
remove
in interface java.util.Iterator<E>
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa