What does Path.iterator() iterate over?

Rob Butler crodster2k at yahoo.com
Mon Oct 6 06:24:19 PDT 2008


Please also indicate which order elements are iterated in.  I.E. from start to end of path (left to right) or from end to start (right to left, or bottom up).

Thanks
Rob



----- Original Message ----
> From: Alan Bateman <Alan.Bateman at Sun.COM>
> To: Alex Miller <alexdmiller at yahoo.com>
> Cc: nio-discuss at openjdk.java.net
> Sent: Monday, October 6, 2008 9:10:37 AM
> Subject: Re: What does Path.iterator() iterate over?
> 
> Alex Miller wrote:
> > I notice Path implements Iterable.  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.
> >
> >  
> It is indeed missing - thanks! It returns an iterator over the name 
> elements of the Path. I'll make sure this is fixed for the next build.
> 
> -Alan.



      



More information about the nio-discuss mailing list