src/infinity/ecs/utils/IndexedCollection.java
/**
		 * Gets the next element in the collection.
		 * 
		 * @return The next element of the collection.
		 * @exception NoSuchElementException when there is no next element because the iterator has
		 * 		reached the end of the collection.
		 */
Gets the next element in the collection.

@return The next element of the collection.
@exception NoSuchElementException when there is no next element because the iterator has
reached the end of the collection.
Gets the next element in the collection . @return The next element of the collection . @exception NoSuchElementException when there is no next element because the iterator has reached the end of the collection .
public T next() throws NoSuchElementException {
			if (_nextPos == -1 && !seekNext())
				throw new NoSuchElementException();
			_currentPos = _nextPos;
			_nextPos = -1;
			return (T)_collection._elements[_currentPos];
		}
public T next ( ) throws NoSuchElementException { if ( _nextPos == - 1 && ! seekNext ( ) ) throw new NoSuchElementException ( ) ; _currentPos = _nextPos ; _nextPos = - 1 ; return ( T ) _collection . _elements [ _currentPos ] ; }
Gets the next element in the collection.
Gets the next element in the collection .
// if the position of the next element is currently unknown, try to find it. If that
 // fails, the iterator has reached the end of the collection.
 // otherwise the former next element is now the current one, which is also the desired
 // element and therefore returned. The position of the next element is no unknown
 // again.
