org.jboss.test.selenium.locator.iteration
Class AbstractElementList.ElementIterator

java.lang.Object
  extended by org.jboss.test.selenium.locator.iteration.AbstractElementList.ElementIterator
All Implemented Interfaces:
Iterator<T>
Enclosing class:
AbstractElementList<T extends IterableLocator<T>>

public class AbstractElementList.ElementIterator
extends Object
implements Iterator<T>

The iterator over elements given by IterableLocator.


Constructor Summary
AbstractElementList.ElementIterator()
           Instantiates a new element iterator.
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
          Unsupported for this Iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractElementList.ElementIterator

public AbstractElementList.ElementIterator()

Instantiates a new element iterator.

Set iteration index to first element and then try to found actual count for given elements.

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T extends IterableLocator<T>>

next

public T next()
Specified by:
next in interface Iterator<T extends IterableLocator<T>>

remove

public void remove()
Unsupported for this Iterator.

Specified by:
remove in interface Iterator<T extends IterableLocator<T>>
Throws:
UnsupportedOperationException - in every call


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.