org.idoox.security.pstore
Interface UserIterator

All Known Implementing Classes:
UserStoreProxy.UserIteratorImpl

public interface UserIterator

This interface represents an iterator over user entries, instances of this iterator are returned by some UserStore methods.

Since:
4.0
See Also:
UserStore
Component:
Security-Core

Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 UserEntry next()
          Returns the next element in the iteration.
 

Method Detail

hasNext

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

Returns:
true if the iteration has more elements.

next

public UserEntry next()
               throws java.util.NoSuchElementException
Returns the next element in the iteration.

Returns:
next element in the iterations
Throws:
java.util.NoSuchElementException - iteration has no more elements.