org.rcfaces.core.component.iterator
Interface IFacesListenerIterator


public interface IFacesListenerIterator

An iterator over a collection of FacesListeners.

Version:
$Revision: 1.18 $ $Date: 2011/06/16 09:29:40 $
Author:
Olivier Oeuillot (latest modification by $Author: jbmeslin $)

Method Summary
 int count()
          Returns the number of facesListeners in this list.
 boolean hasNext()
          Returns true if the iteration has more facesListeners.
 FacesListener next()
          Returns the next FacesListener in the iteration.
 FacesListener[] toArray()
          Returns an array containing all of the FacesListeners in this list in proper sequence.
 

Method Detail

count

int count()
Returns the number of facesListeners in this list.

Returns:
the number of facesListeners in this list.

hasNext

boolean hasNext()
Returns true if the iteration has more facesListeners. (In other words, returns true if next would return an element rather than throwing an exception.)

Returns:
true if the iterator has more facesListeners.

next

FacesListener next()
Returns the next FacesListener in the iteration. Calling this method repeatedly until the hasNext() method returns false will return each FacesListener in the underlying collection exactly once.

Returns:
the next FacesListener in the iteration.
Throws:
NoSuchElementException - iteration has no more FacesListeners.

toArray

FacesListener[] toArray()
Returns an array containing all of the FacesListeners in this list in proper sequence.

Returns:
an array containing all of the FacesListeners in this list in proper sequence.


Copyright © 2006-2011 Vedana. All Rights Reserved.