- 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.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
- 
Methods inherited from interface java.util.IteratorforEachRemaining
 
 
 
- 
- 
Constructor Detail
- 
JoinedIteratorpublic 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
- 
hasNextpublic boolean hasNext() Checks for next. 
- Specified by:
- hasNextin interface- java.util.Iterator<E>
- Returns:
- true, if successful
 
 
- 
nextpublic E next() Next. 
- Specified by:
- nextin interface- java.util.Iterator<E>
- Returns:
- the e
 
 
- 
removepublic void remove() Removes the. 
- Specified by:
- removein interface- java.util.Iterator<E>
 
 
 
 
 
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa