What does Path.iterator() iterate over?

Alex Miller alexdmiller at yahoo.com
Mon Oct 6 05:24:00 PDT 2008


I notice Path implements Iterable<Path>.  What does Path.iterator() iterate over?  

The two possibilities I thought of were:
1) The hierarchical Paths that make up the Path
2) The contents of the Path if Path is a directory

The javadoc is absent for this method so maybe if that was added, it could spell it out.


Thanks,
Alex Miller



More information about the nio-discuss mailing list