au.com.prunge.jgenfile
Interface Path.Iterator

All Known Implementing Classes:
AbstractPath.ListPathIterator
Enclosing interface:
Path

public static interface Path.Iterator

Iterator interface for path objects.

Version:
1.0
Author:
Peter Runge

Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 au.com.prunge.jgenfile.Directory next()
          Returns the next directory 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, false if not.

next

public au.com.prunge.jgenfile.Directory next()
                                      throws NoSuchElementException
Returns the next directory in the iteration.

Returns:
the next directory in the iteration.
Throws:
NoSuchElementException - if there are no more directories in the iteration.