@Override
   public Iterator<T> iterator()
   {
      return new Iterator<T>() {
         private int index;

         @Override
         public boolean hasNext()
         {
            return index < size;
         }

         @Override
         public T next()
         {
            if (index < size) {
               return elementData[index++];
            }

            throw new NoSuchElementException("No more elements in FastList"); 
         }
      };
   }
@ Override public Iterator < T > iterator ( ) { return new Iterator < T > ( ) { private int index ; @ Override public boolean hasNext ( ) { return index < size ; } @ Override public T next ( ) { if ( index < size ) { return elementData [ index ++ ] ; } throw new NoSuchElementException ( "No more elements in FastList" ) ; } } ; }
{@inheritDoc}