src/main/java/org/jboss/util/collection/CompoundIterator.java
/**
    * Return the next element from the current iterator.
    *
    * @return  The next element from the current iterator.
    *
    * @throws NoSuchElementException   There are no more elements.
    */
Return the next element from the current iterator.
@return  The next element from the current iterator.

@throws NoSuchElementException   There are no more elements.
Return the next element from the current iterator . @return The next element from the current iterator . @throws NoSuchElementException There are no more elements .
public Object next() {
      if (!hasNext()) {
         throw new NoSuchElementException();
      }
      return iters[index].next();
   }
public Object next ( ) { if ( ! hasNext ( ) ) { throw new NoSuchElementException ( ) ; } return iters [ index ] . next ( ) ; }
Return the next element from the current iterator.
Return the next element from the current iterator .